mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user