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:
Daniel Nephin
2018-03-16 11:03:43 -04:00
parent 1c9c9f9e72
commit 60daf5fa97
183 changed files with 2253 additions and 2199 deletions
@@ -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) {