mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #40470 from thaJeztah/loosen_error_check_assert
TestResumableRequestHeaderTooMuchFailures: prepare for Go 1.14 changes
This commit is contained in:
commit
266d744b52
1 changed files with 3 additions and 2 deletions
|
@ -75,9 +75,10 @@ func TestResumableRequestHeaderTooMuchFailures(t *testing.T) {
|
||||||
}
|
}
|
||||||
defer resreq.Close()
|
defer resreq.Close()
|
||||||
|
|
||||||
expectedError := `Get I%27m%20not%20an%20url: unsupported protocol scheme ""`
|
|
||||||
read, err := resreq.Read([]byte{})
|
read, err := resreq.Read([]byte{})
|
||||||
assert.Check(t, is.Error(err, expectedError))
|
assert.Assert(t, err != nil)
|
||||||
|
assert.Check(t, is.ErrorContains(err, "unsupported protocol scheme"))
|
||||||
|
assert.Check(t, is.ErrorContains(err, "I%27m%20not%20an%20url"))
|
||||||
assert.Check(t, is.Equal(0, read))
|
assert.Check(t, is.Equal(0, read))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue