@@ -24,13 +24,13 @@ func (s *DockerSwarmSuite) TestServiceCreateMountVolume(c *testing.T) {
2424 id := strings .TrimSpace (out )
2525
2626 var tasks []swarm.Task
27- waitAndAssert (c , defaultReconciliationTimeout , func (c * testing.T ) (interface {}, check. CommentInterface ) {
27+ waitAndAssert (c , defaultReconciliationTimeout , func (c * testing.T ) (interface {}, string ) {
2828 tasks = d .GetServiceTasks (c , id )
2929 return len (tasks ) > 0 , nil
3030 }, checker .Equals , true )
3131
3232 task := tasks [0 ]
33- waitAndAssert (c , defaultReconciliationTimeout , func (c * testing.T ) (interface {}, check. CommentInterface ) {
33+ waitAndAssert (c , defaultReconciliationTimeout , func (c * testing.T ) (interface {}, string ) {
3434 if task .NodeID == "" || task .Status .ContainerStatus == nil {
3535 task = d .GetTask (c , task .ID )
3636 }
@@ -138,13 +138,13 @@ func (s *DockerSwarmSuite) TestServiceCreateWithSecretSourceTargetPaths(c *testi
138138 assert .Equal (c , len (refs ), len (testPaths ))
139139
140140 var tasks []swarm.Task
141- waitAndAssert (c , defaultReconciliationTimeout , func (c * testing.T ) (interface {}, check. CommentInterface ) {
141+ waitAndAssert (c , defaultReconciliationTimeout , func (c * testing.T ) (interface {}, string ) {
142142 tasks = d .GetServiceTasks (c , serviceName )
143143 return len (tasks ) > 0 , nil
144144 }, checker .Equals , true )
145145
146146 task := tasks [0 ]
147- waitAndAssert (c , defaultReconciliationTimeout , func (c * testing.T ) (interface {}, check. CommentInterface ) {
147+ waitAndAssert (c , defaultReconciliationTimeout , func (c * testing.T ) (interface {}, string ) {
148148 if task .NodeID == "" || task .Status .ContainerStatus == nil {
149149 task = d .GetTask (c , task .ID )
150150 }
@@ -188,13 +188,13 @@ func (s *DockerSwarmSuite) TestServiceCreateWithSecretReferencedTwice(c *testing
188188 assert .Equal (c , len (refs ), 2 )
189189
190190 var tasks []swarm.Task
191- waitAndAssert (c , defaultReconciliationTimeout , func (c * testing.T ) (interface {}, check. CommentInterface ) {
191+ waitAndAssert (c , defaultReconciliationTimeout , func (c * testing.T ) (interface {}, string ) {
192192 tasks = d .GetServiceTasks (c , serviceName )
193193 return len (tasks ) > 0 , nil
194194 }, checker .Equals , true )
195195
196196 task := tasks [0 ]
197- waitAndAssert (c , defaultReconciliationTimeout , func (c * testing.T ) (interface {}, check. CommentInterface ) {
197+ waitAndAssert (c , defaultReconciliationTimeout , func (c * testing.T ) (interface {}, string ) {
198198 if task .NodeID == "" || task .Status .ContainerStatus == nil {
199199 task = d .GetTask (c , task .ID )
200200 }
@@ -285,13 +285,13 @@ func (s *DockerSwarmSuite) TestServiceCreateWithConfigSourceTargetPaths(c *testi
285285 assert .Equal (c , len (refs ), len (testPaths ))
286286
287287 var tasks []swarm.Task
288- waitAndAssert (c , defaultReconciliationTimeout , func (c * testing.T ) (interface {}, check. CommentInterface ) {
288+ waitAndAssert (c , defaultReconciliationTimeout , func (c * testing.T ) (interface {}, string ) {
289289 tasks = d .GetServiceTasks (c , serviceName )
290290 return len (tasks ) > 0 , nil
291291 }, checker .Equals , true )
292292
293293 task := tasks [0 ]
294- waitAndAssert (c , defaultReconciliationTimeout , func (c * testing.T ) (interface {}, check. CommentInterface ) {
294+ waitAndAssert (c , defaultReconciliationTimeout , func (c * testing.T ) (interface {}, string ) {
295295 if task .NodeID == "" || task .Status .ContainerStatus == nil {
296296 task = d .GetTask (c , task .ID )
297297 }
@@ -335,13 +335,13 @@ func (s *DockerSwarmSuite) TestServiceCreateWithConfigReferencedTwice(c *testing
335335 assert .Equal (c , len (refs ), 2 )
336336
337337 var tasks []swarm.Task
338- waitAndAssert (c , defaultReconciliationTimeout , func (c * testing.T ) (interface {}, check. CommentInterface ) {
338+ waitAndAssert (c , defaultReconciliationTimeout , func (c * testing.T ) (interface {}, string ) {
339339 tasks = d .GetServiceTasks (c , serviceName )
340340 return len (tasks ) > 0 , nil
341341 }, checker .Equals , true )
342342
343343 task := tasks [0 ]
344- waitAndAssert (c , defaultReconciliationTimeout , func (c * testing.T ) (interface {}, check. CommentInterface ) {
344+ waitAndAssert (c , defaultReconciliationTimeout , func (c * testing.T ) (interface {}, string ) {
345345 if task .NodeID == "" || task .Status .ContainerStatus == nil {
346346 task = d .GetTask (c , task .ID )
347347 }
@@ -367,13 +367,13 @@ func (s *DockerSwarmSuite) TestServiceCreateMountTmpfs(c *testing.T) {
367367 id := strings .TrimSpace (out )
368368
369369 var tasks []swarm.Task
370- waitAndAssert (c , defaultReconciliationTimeout , func (c * testing.T ) (interface {}, check. CommentInterface ) {
370+ waitAndAssert (c , defaultReconciliationTimeout , func (c * testing.T ) (interface {}, string ) {
371371 tasks = d .GetServiceTasks (c , id )
372372 return len (tasks ) > 0 , nil
373373 }, checker .Equals , true )
374374
375375 task := tasks [0 ]
376- waitAndAssert (c , defaultReconciliationTimeout , func (c * testing.T ) (interface {}, check. CommentInterface ) {
376+ waitAndAssert (c , defaultReconciliationTimeout , func (c * testing.T ) (interface {}, string ) {
377377 if task .NodeID == "" || task .Status .ContainerStatus == nil {
378378 task = d .GetTask (c , task .ID )
379379 }
@@ -423,13 +423,13 @@ func (s *DockerSwarmSuite) TestServiceCreateWithNetworkAlias(c *testing.T) {
423423 id := strings .TrimSpace (out )
424424
425425 var tasks []swarm.Task
426- waitAndAssert (c , defaultReconciliationTimeout , func (c * testing.T ) (interface {}, check. CommentInterface ) {
426+ waitAndAssert (c , defaultReconciliationTimeout , func (c * testing.T ) (interface {}, string ) {
427427 tasks = d .GetServiceTasks (c , id )
428428 return len (tasks ) > 0 , nil
429429 }, checker .Equals , true )
430430
431431 task := tasks [0 ]
432- waitAndAssert (c , defaultReconciliationTimeout , func (c * testing.T ) (interface {}, check. CommentInterface ) {
432+ waitAndAssert (c , defaultReconciliationTimeout , func (c * testing.T ) (interface {}, string ) {
433433 if task .NodeID == "" || task .Status .ContainerStatus == nil {
434434 task = d .GetTask (c , task .ID )
435435 }
0 commit comments