12552: Remove superfluous arithmetic.
authorTom Clegg <tclegg@veritasgenetics.com>
Fri, 2 Mar 2018 19:58:43 +0000 (14:58 -0500)
committerTom Clegg <tclegg@veritasgenetics.com>
Fri, 2 Mar 2018 19:59:58 +0000 (14:59 -0500)
No issue #

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg@veritasgenetics.com>

services/crunch-dispatch-slurm/crunch-dispatch-slurm_test.go

index 371f7db31ec20ababf00100d54355a1052e78bc1..6852fc4be81978dd557870a2b629d5e56e16fc47 100644 (file)
@@ -115,7 +115,7 @@ func (s *IntegrationSuite) integrationTest(c *C,
 
        s.disp.Dispatcher = &dispatch.Dispatcher{
                Arv:        arv,
-               PollPeriod: time.Duration(1) * time.Second,
+               PollPeriod: time.Second,
                RunContainer: func(disp *dispatch.Dispatcher, ctr arvados.Container, status <-chan arvados.Container) {
                        go func() {
                                runContainer(disp, ctr)
@@ -260,10 +260,10 @@ func (s *StubbedSuite) testWithServerStub(c *C, apiStubResponses map[string]arva
        ctx, cancel := context.WithCancel(context.Background())
        dispatcher := dispatch.Dispatcher{
                Arv:        arv,
-               PollPeriod: time.Duration(1) * time.Second,
+               PollPeriod: time.Second,
                RunContainer: func(disp *dispatch.Dispatcher, ctr arvados.Container, status <-chan arvados.Container) {
                        go func() {
-                               time.Sleep(1 * time.Second)
+                               time.Sleep(time.Second)
                                disp.UpdateState(ctr.UUID, dispatch.Running)
                                disp.UpdateState(ctr.UUID, dispatch.Complete)
                        }()