Explorar o código

Merge pull request #32666 from vdemeester/fix-test-unit

Fix formatter unit test (moving to testify)
Daniel Nephin %!s(int64=8) %!d(string=hai) anos
pai
achega
f33f257888
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      cli/command/formatter/history_test.go

+ 2 - 2
cli/command/formatter/history_test.go

@@ -10,7 +10,7 @@ import (
 	"github.com/docker/docker/api/types/image"
 	"github.com/docker/docker/pkg/stringid"
 	"github.com/docker/docker/pkg/stringutils"
-	"github.com/docker/docker/pkg/testutil/assert"
+	"github.com/stretchr/testify/assert"
 )
 
 type historyCase struct {
@@ -206,7 +206,7 @@ imageID4            24 hours ago        /bin/bash grep
 
 	for _, context := range contexts {
 		HistoryWrite(context.context, true, histories)
-		assert.Equal(t, out.String(), context.expected)
+		assert.Equal(t, context.expected, out.String())
 		// Clean buffer
 		out.Reset()
 	}