Skip to content

Commit cd0dce0

Browse files
committed
fix flaky test
1 parent fe2bdcf commit cd0dce0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/utils/cache_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@ func Test_CacheGet(t *testing.T) {
2828
{
2929
key: "key-2",
3030
value: "value-2",
31-
duration: 5 * time.Millisecond,
31+
duration: 1 * time.Millisecond,
3232
waitDuration: 10 * time.Millisecond,
3333
expectedValue: nil,
3434
expectedExists: false,
3535
},
3636
{
3737
key: "key-3",
3838
value: "value-3",
39-
duration: 20 * time.Millisecond,
40-
waitDuration: 10 * time.Millisecond,
39+
duration: 20 * time.Second,
40+
waitDuration: 1 * time.Millisecond,
4141
expectedValue: "value-3",
4242
expectedExists: true,
4343
},

0 commit comments

Comments
 (0)