Skip to content

Commit

Permalink
self review.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-dwinter committed Jun 2, 2024
1 parent fd11515 commit 8d67413
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions internal/client/cache/file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ func Test_fileCache_SaveAndLoad(t *testing.T) {
name string
fields fields
args args
sleep time.Duration
wantExpired bool
wantErr bool
}{
Expand Down Expand Up @@ -130,13 +129,12 @@ func Test_fileCache_SaveAndLoad(t *testing.T) {
fields: fields{
cachePath: cachePath,
cipherBlock: block,
expireDuration: 1 * time.Microsecond,
expireDuration: 0,
},
args: args{
key: "expired-key",
value: stringPtr("expired-value"),
},
sleep: 10 * time.Millisecond,
wantExpired: true,
},
{
Expand Down Expand Up @@ -165,7 +163,6 @@ func Test_fileCache_SaveAndLoad(t *testing.T) {
if err := f.Save(tt.args.in0, tt.args.key, tt.args.value, tt.args.encrypt); (err != nil) != tt.wantErr {
t.Errorf("fileCache.Save() error = %v, wantErr %v", err, tt.wantErr)
}
time.Sleep(tt.sleep)

// Load
gotValue, gotExpired, err := f.Load(tt.args.in0, tt.args.key, tt.args.encrypt)
Expand Down

0 comments on commit 8d67413

Please sign in to comment.