1
0
mirror of https://github.com/docker/cli.git synced 2025-08-30 12:01:10 +03:00

Post migration fixes

Fix tests that failed when using cmp.Compare()
internal/test/testutil/assert
InDelta
Fix DeepEqual with kube metav1.Time
Convert some ErrorContains to assert

Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
Daniel Nephin
2017-12-21 16:27:57 -05:00
parent 39c2ca57c1
commit 5155cda716
28 changed files with 177 additions and 194 deletions

View File

@@ -22,7 +22,7 @@ func TestGetStackAPIVersion(t *testing.T) {
for _, test := range tests {
version, err := getAPIVersion(test.groups)
if test.err {
assert.Assert(t, is.ErrorContains(err, ""))
assert.ErrorContains(t, err, "")
} else {
assert.NilError(t, err)
}