Skip to content

Commit

Permalink
increased timeouts in test
Browse files Browse the repository at this point in the history
  • Loading branch information
0xERR0R committed Jan 7, 2022
1 parent c176b02 commit 2b6c934
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lists/list_cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ var _ = Describe("ListCache", func() {
s := httptest.NewServer(http.HandlerFunc(func(rw http.ResponseWriter, req *http.Request) {
a := atomic.LoadUint64(&attempt)
if a == 1 {
time.Sleep(200 * time.Millisecond)
time.Sleep(500 * time.Millisecond)
} else {
_, err := rw.Write([]byte("blocked1.com"))
Expect(err).Should(Succeed())
Expand All @@ -90,7 +90,7 @@ var _ = Describe("ListCache", func() {
"gr1": {s.URL},
}

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

0 comments on commit 2b6c934

Please sign in to comment.