Skip to content

Commit

Permalink
tweak test
Browse files Browse the repository at this point in the history
  • Loading branch information
lestrrat committed Mar 22, 2022
1 parent bfaf50b commit 4da2435
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions httprc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,9 @@ func TestCache(t *testing.T) {
c := httprc.New(ctx, httprc.WithRefreshWindow(time.Second))

c.Register(srv.URL, httprc.WithHTTPClient(srv.Client()), httprc.WithMinRefreshInterval(time.Second))
/*
if !assert.True(t, c.IsRegistered(srv.URL)) {
return
}
*/
if !assert.True(t, c.IsRegistered(srv.URL)) {
return
}

for i := 0; i < 3; i++ {
_, err := c.Get(ctx, srv.URL)
Expand All @@ -60,6 +58,4 @@ func TestCache(t *testing.T) {
}

cancel()

time.Sleep(5 * time.Second)
}

0 comments on commit 4da2435

Please sign in to comment.