mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Add api helpers to internal/test/daemon.Daemon
Porting helpers from `integration-cli/daemon.Daemon` to this struct and use the API instead of the cli. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
@@ -556,7 +556,7 @@ func (s *DockerSwarmSuite) TestAPISwarmServicesStateReporting(c *check.C) {
|
||||
getContainers := func() map[string]*daemon.Daemon {
|
||||
m := make(map[string]*daemon.Daemon)
|
||||
for _, d := range []*daemon.Daemon{d1, d2, d3} {
|
||||
for _, id := range d.ActiveContainers() {
|
||||
for _, id := range d.ActiveContainers(c) {
|
||||
m[id] = d
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user