fn: lb_agent_test tweak (#931)

Time.Sleep() blocking fixes in placers (naive and ch) improves
some of the timing in processing, therefore reducing the max
calls settings in mock runner pool.
This commit is contained in:
Tolga Ceylan
2018-04-10 18:28:47 -07:00
committed by GitHub
parent e7658db822
commit 600dce5b2c

View File

@@ -201,7 +201,7 @@ func TestSpilloverToSecondRunner(t *testing.T) {
func TestEnforceSlotTimeout(t *testing.T) { func TestEnforceSlotTimeout(t *testing.T) {
placer := pool.NewNaivePlacer() placer := pool.NewNaivePlacer()
rp := setupMockRunnerPool([]string{"171.19.0.1", "171.19.0.2"}, 10*time.Millisecond, 2) rp := setupMockRunnerPool([]string{"171.19.0.1", "171.19.0.2"}, 10*time.Millisecond, 1)
parallelCalls := 5 parallelCalls := 5
var wg sync.WaitGroup var wg sync.WaitGroup