From: Tom Clegg Date: Thu, 21 Mar 2019 18:12:54 +0000 (-0400) Subject: 14807: Allow some fake nodes to remain unbroken. X-Git-Tag: 1.4.0~99^2 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/d2aa25400fe0b6b8fc231b1c5e0d32085e38b6bc 14807: Allow some fake nodes to remain unbroken. If every fake node hits a fake failure mode in 200-400 ms, throughput can fall below 20 containers per second and fail the test. Arvados-DCO-1.1-Signed-off-by: Tom Clegg --- diff --git a/lib/dispatchcloud/dispatcher_test.go b/lib/dispatchcloud/dispatcher_test.go index d1ee4b135e..b0033353c2 100644 --- a/lib/dispatchcloud/dispatcher_test.go +++ b/lib/dispatchcloud/dispatcher_test.go @@ -156,9 +156,10 @@ func (s *DispatcherSuite) TestDispatchToStubDriver(c *check.C) { stubvm.Broken = time.Now().Add(time.Duration(rand.Int63n(90)) * time.Millisecond) case 1: stubvm.CrunchRunMissing = true + case 2: + stubvm.ReportBroken = time.Now().Add(time.Duration(rand.Int63n(200)) * time.Millisecond) default: stubvm.CrunchRunCrashRate = 0.1 - stubvm.ReportBroken = time.Now().Add(time.Duration(rand.Int63n(200)+200) * time.Millisecond) } }