Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
chore(test) fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
Tieske committed Jan 21, 2021
1 parent 7051700 commit cf1cdf6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spec/balancer/consistent_hashing_spec.lua
Expand Up @@ -644,7 +644,7 @@ describe("[consistent_hashing]", function()
local b = balancer.new({
dns = client,
wheelSize = 1000,
requery = 1,
requery = 0.1,
})
b:addHost("really.really.really.does.not.exist.thijsschreijer.nl", 80, 10)
b:addHost("getkong.org", 80, 10)
Expand Down
4 changes: 2 additions & 2 deletions spec/balancer/ring_spec.lua
Expand Up @@ -1288,7 +1288,7 @@ describe("[ringbalancer]", function()
local b = check_balancer(balancer.new {
dns = client,
wheelSize = 60,
requery = 1,
requery = 0.1,
})
b:addHost("really.really.really.does.not.exist.thijsschreijer.nl", 80, 10)
b:addHost("getkong.org", 80, 10)
Expand Down Expand Up @@ -1615,7 +1615,7 @@ describe("[ringbalancer]", function()
},
dns = client,
wheelSize = 20,
requery = 1, -- shorten default requery time for the test
requery = 0.1, -- shorten default requery time for the test
})
local state1 = copyWheel(b)
local state2 = copyWheel(b)
Expand Down

0 comments on commit cf1cdf6

Please sign in to comment.