@@ -25,15 +25,15 @@ func (s *DockerSwarmSuite) TestServiceCreateMountVolume(c *testing.T) {
2525 var tasks []swarm.Task
2626 waitAndAssert (c , defaultReconciliationTimeout , func (c * testing.T ) (interface {}, string ) {
2727 tasks = d .GetServiceTasks (c , id )
28- return len (tasks ) > 0 , nil
28+ return len (tasks ) > 0 , ""
2929 }, checker .Equals , true )
3030
3131 task := tasks [0 ]
3232 waitAndAssert (c , defaultReconciliationTimeout , func (c * testing.T ) (interface {}, string ) {
3333 if task .NodeID == "" || task .Status .ContainerStatus == nil {
3434 task = d .GetTask (c , task .ID )
3535 }
36- return task .NodeID != "" && task .Status .ContainerStatus != nil , nil
36+ return task .NodeID != "" && task .Status .ContainerStatus != nil , ""
3737 }, checker .Equals , true )
3838
3939 // check container mount config
@@ -139,15 +139,15 @@ func (s *DockerSwarmSuite) TestServiceCreateWithSecretSourceTargetPaths(c *testi
139139 var tasks []swarm.Task
140140 waitAndAssert (c , defaultReconciliationTimeout , func (c * testing.T ) (interface {}, string ) {
141141 tasks = d .GetServiceTasks (c , serviceName )
142- return len (tasks ) > 0 , nil
142+ return len (tasks ) > 0 , ""
143143 }, checker .Equals , true )
144144
145145 task := tasks [0 ]
146146 waitAndAssert (c , defaultReconciliationTimeout , func (c * testing.T ) (interface {}, string ) {
147147 if task .NodeID == "" || task .Status .ContainerStatus == nil {
148148 task = d .GetTask (c , task .ID )
149149 }
150- return task .NodeID != "" && task .Status .ContainerStatus != nil , nil
150+ return task .NodeID != "" && task .Status .ContainerStatus != nil , ""
151151 }, checker .Equals , true )
152152
153153 for testName , testTarget := range testPaths {
@@ -189,15 +189,15 @@ func (s *DockerSwarmSuite) TestServiceCreateWithSecretReferencedTwice(c *testing
189189 var tasks []swarm.Task
190190 waitAndAssert (c , defaultReconciliationTimeout , func (c * testing.T ) (interface {}, string ) {
191191 tasks = d .GetServiceTasks (c , serviceName )
192- return len (tasks ) > 0 , nil
192+ return len (tasks ) > 0 , ""
193193 }, checker .Equals , true )
194194
195195 task := tasks [0 ]
196196 waitAndAssert (c , defaultReconciliationTimeout , func (c * testing.T ) (interface {}, string ) {
197197 if task .NodeID == "" || task .Status .ContainerStatus == nil {
198198 task = d .GetTask (c , task .ID )
199199 }
200- return task .NodeID != "" && task .Status .ContainerStatus != nil , nil
200+ return task .NodeID != "" && task .Status .ContainerStatus != nil , ""
201201 }, checker .Equals , true )
202202
203203 for _ , target := range []string {"target1" , "target2" } {
@@ -286,15 +286,15 @@ func (s *DockerSwarmSuite) TestServiceCreateWithConfigSourceTargetPaths(c *testi
286286 var tasks []swarm.Task
287287 waitAndAssert (c , defaultReconciliationTimeout , func (c * testing.T ) (interface {}, string ) {
288288 tasks = d .GetServiceTasks (c , serviceName )
289- return len (tasks ) > 0 , nil
289+ return len (tasks ) > 0 , ""
290290 }, checker .Equals , true )
291291
292292 task := tasks [0 ]
293293 waitAndAssert (c , defaultReconciliationTimeout , func (c * testing.T ) (interface {}, string ) {
294294 if task .NodeID == "" || task .Status .ContainerStatus == nil {
295295 task = d .GetTask (c , task .ID )
296296 }
297- return task .NodeID != "" && task .Status .ContainerStatus != nil , nil
297+ return task .NodeID != "" && task .Status .ContainerStatus != nil , ""
298298 }, checker .Equals , true )
299299
300300 for testName , testTarget := range testPaths {
@@ -336,15 +336,15 @@ func (s *DockerSwarmSuite) TestServiceCreateWithConfigReferencedTwice(c *testing
336336 var tasks []swarm.Task
337337 waitAndAssert (c , defaultReconciliationTimeout , func (c * testing.T ) (interface {}, string ) {
338338 tasks = d .GetServiceTasks (c , serviceName )
339- return len (tasks ) > 0 , nil
339+ return len (tasks ) > 0 , ""
340340 }, checker .Equals , true )
341341
342342 task := tasks [0 ]
343343 waitAndAssert (c , defaultReconciliationTimeout , func (c * testing.T ) (interface {}, string ) {
344344 if task .NodeID == "" || task .Status .ContainerStatus == nil {
345345 task = d .GetTask (c , task .ID )
346346 }
347- return task .NodeID != "" && task .Status .ContainerStatus != nil , nil
347+ return task .NodeID != "" && task .Status .ContainerStatus != nil , ""
348348 }, checker .Equals , true )
349349
350350 for _ , target := range []string {"target1" , "target2" } {
@@ -368,15 +368,15 @@ func (s *DockerSwarmSuite) TestServiceCreateMountTmpfs(c *testing.T) {
368368 var tasks []swarm.Task
369369 waitAndAssert (c , defaultReconciliationTimeout , func (c * testing.T ) (interface {}, string ) {
370370 tasks = d .GetServiceTasks (c , id )
371- return len (tasks ) > 0 , nil
371+ return len (tasks ) > 0 , ""
372372 }, checker .Equals , true )
373373
374374 task := tasks [0 ]
375375 waitAndAssert (c , defaultReconciliationTimeout , func (c * testing.T ) (interface {}, string ) {
376376 if task .NodeID == "" || task .Status .ContainerStatus == nil {
377377 task = d .GetTask (c , task .ID )
378378 }
379- return task .NodeID != "" && task .Status .ContainerStatus != nil , nil
379+ return task .NodeID != "" && task .Status .ContainerStatus != nil , ""
380380 }, checker .Equals , true )
381381
382382 // check container mount config
@@ -424,15 +424,15 @@ func (s *DockerSwarmSuite) TestServiceCreateWithNetworkAlias(c *testing.T) {
424424 var tasks []swarm.Task
425425 waitAndAssert (c , defaultReconciliationTimeout , func (c * testing.T ) (interface {}, string ) {
426426 tasks = d .GetServiceTasks (c , id )
427- return len (tasks ) > 0 , nil
427+ return len (tasks ) > 0 , ""
428428 }, checker .Equals , true )
429429
430430 task := tasks [0 ]
431431 waitAndAssert (c , defaultReconciliationTimeout , func (c * testing.T ) (interface {}, string ) {
432432 if task .NodeID == "" || task .Status .ContainerStatus == nil {
433433 task = d .GetTask (c , task .ID )
434434 }
435- return task .NodeID != "" && task .Status .ContainerStatus != nil , nil
435+ return task .NodeID != "" && task .Status .ContainerStatus != nil , ""
436436 }, checker .Equals , true )
437437
438438 // check container alias config
0 commit comments