Automated migration using
gty-migrate-from-testify --ignore-build-tags Signed-off-by: Daniel Nephin <dnephin@docker.com> Upstream-commit: 6be0f709830113966f295401327b027ec2f0bbca Component: engine
This commit is contained in:
@@ -9,7 +9,8 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/docker/docker/pkg/term"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/gotestyourself/gotestyourself/assert"
|
||||
is "github.com/gotestyourself/gotestyourself/assert/cmp"
|
||||
)
|
||||
|
||||
func TestError(t *testing.T) {
|
||||
@@ -198,7 +199,7 @@ func TestJSONMessageDisplayWithJSONError(t *testing.T) {
|
||||
|
||||
jsonMessage = JSONMessage{Error: &JSONError{401, "Anything"}}
|
||||
err = jsonMessage.Display(data, &noTermInfo{})
|
||||
assert.EqualError(t, err, "authentication is required")
|
||||
assert.Check(t, is.Error(err, "authentication is required"))
|
||||
}
|
||||
|
||||
func TestDisplayJSONMessagesStreamInvalidJSON(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user