integration-cli: update comments referencing waitAndAssert()
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
2900a919f4
commit
a44d90cdd4
2 changed files with 2 additions and 2 deletions
|
@ -737,7 +737,7 @@ func checkClusterHealth(c *testing.T, cl []*daemon.Daemon, managerCount, workerC
|
|||
info swarm.Info
|
||||
)
|
||||
|
||||
// check info in a waitAndAssert, because if the cluster doesn't have a leader, `info` will return an error
|
||||
// check info in a poll.WaitOn(), because if the cluster doesn't have a leader, `info` will return an error
|
||||
checkInfo := func(c *testing.T) (interface{}, string) {
|
||||
client := d.NewClientT(c)
|
||||
daemonInfo, err := client.Info(context.Background())
|
||||
|
|
|
@ -51,7 +51,7 @@ func (s *DockerSwarmSuite) TestServiceLogs(c *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
// countLogLines returns a closure that can be used with waitAndAssert to
|
||||
// countLogLines returns a closure that can be used with poll.WaitOn() to
|
||||
// verify that a minimum number of expected container log messages have been
|
||||
// output.
|
||||
func countLogLines(d *daemon.Daemon, name string) func(*testing.T) (interface{}, string) {
|
||||
|
|
Loading…
Add table
Reference in a new issue