Skip to content

Commit

Permalink
fix flaky cache test (#604)
Browse files Browse the repository at this point in the history
increased timeout to 100ms in SimpleCacheTest

Signed-off-by: Ivan Protsiuk <[email protected]>
Co-authored-by: Matthew Kocher <[email protected]>
  • Loading branch information
iprotsiuk and mkocher authored Aug 19, 2024
1 parent ee7daf8 commit 033e71b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pkg/simplecache/simplecache_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package simplecache_test

import (
"code.cloudfoundry.org/loggregator-agent-release/src/pkg/simplecache"
"time"

"code.cloudfoundry.org/loggregator-agent-release/src/pkg/simplecache"

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)
Expand Down Expand Up @@ -43,7 +44,7 @@ var _ = Describe("SimpleCache", func() {
Eventually(func() bool {
_, exists := cache.Get("key1")
return exists
}).WithTimeout(6 * time.Millisecond).WithPolling(time.Millisecond).Should(BeFalse())
}).WithTimeout(100 * time.Millisecond).WithPolling(time.Millisecond).Should(BeFalse())
})

It("handles concurrent access", func() {
Expand Down

0 comments on commit 033e71b

Please sign in to comment.