Skip to content

Commit 2b6c934

Browse files
committed
increased timeouts in test
1 parent c176b02 commit 2b6c934

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lists/list_cache_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ var _ = Describe("ListCache", func() {
7878
s := httptest.NewServer(http.HandlerFunc(func(rw http.ResponseWriter, req *http.Request) {
7979
a := atomic.LoadUint64(&attempt)
8080
if a == 1 {
81-
time.Sleep(200 * time.Millisecond)
81+
time.Sleep(500 * time.Millisecond)
8282
} else {
8383
_, err := rw.Write([]byte("blocked1.com"))
8484
Expect(err).Should(Succeed())
@@ -90,7 +90,7 @@ var _ = Describe("ListCache", func() {
9090
"gr1": {s.URL},
9191
}
9292

93-
sut, _ := NewListCache(ListCacheTypeBlacklist, lists, 0, 100*time.Millisecond, 3, time.Millisecond)
93+
sut, _ := NewListCache(ListCacheTypeBlacklist, lists, 0, 400*time.Millisecond, 3, time.Millisecond)
9494
Eventually(func(g Gomega) {
9595
found, group := sut.Match("blocked1.com", []string{"gr1"})
9696
g.Expect(found).Should(BeTrue())

0 commit comments

Comments
 (0)