We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62fc35f commit 2359f27Copy full SHA for 2359f27
testing/server_test.go
@@ -207,6 +207,7 @@ func TestListContainers(t *testing.T) {
207
Ports: container.NetworkSettings.PortMappingAPI(),
208
Names: []string{"/" + container.Name},
209
State: container.State.StateString(),
210
+ Labels: map[string]string{"key": fmt.Sprintf("val-%d", i)},
211
}
212
213
sortFn := func(left, right docker.APIContainers) int {
@@ -220,7 +221,7 @@ func TestListContainers(t *testing.T) {
220
221
222
slices.SortFunc(got, sortFn)
223
if !reflect.DeepEqual(got, expected) {
- t.Errorf("ListContainers. Want %#v. Got %#v.", expected, got)
224
+ t.Errorf("ListContainers.\nWant %#v.\nGot %#v.", expected, got)
225
226
227
0 commit comments