From 2359f276ceb260d8b8bb16055d376ee1fb56a545 Mon Sep 17 00:00:00 2001 From: francisco souza <108725+fsouza@users.noreply.github.com> Date: Tue, 6 Feb 2024 20:00:06 -0500 Subject: [PATCH] testing: fix test --- testing/server_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testing/server_test.go b/testing/server_test.go index fbbe958d..c0f466d3 100644 --- a/testing/server_test.go +++ b/testing/server_test.go @@ -207,6 +207,7 @@ func TestListContainers(t *testing.T) { Ports: container.NetworkSettings.PortMappingAPI(), Names: []string{"/" + container.Name}, State: container.State.StateString(), + Labels: map[string]string{"key": fmt.Sprintf("val-%d", i)}, } } sortFn := func(left, right docker.APIContainers) int { @@ -220,7 +221,7 @@ func TestListContainers(t *testing.T) { } slices.SortFunc(got, sortFn) if !reflect.DeepEqual(got, expected) { - t.Errorf("ListContainers. Want %#v. Got %#v.", expected, got) + t.Errorf("ListContainers.\nWant %#v.\nGot %#v.", expected, got) } }