Adding upstream version 1.0.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
4a5c02e4d1
commit
b285fe25c2
13 changed files with 86 additions and 43 deletions
|
@ -138,12 +138,12 @@ func performErrorTest(t *testing.T, testCase errorTestCase) {
|
|||
|
||||
errorHandler(testCase.errors, resp)
|
||||
|
||||
assert.EqualValues(t, testCase.expected.statusCode, resp.Code)
|
||||
assert.EqualValues(t, testCase.expected.contentType, resp.Header().Get("Content-Type"))
|
||||
assert.Equal(t, testCase.expected.statusCode, resp.Code)
|
||||
assert.Equal(t, testCase.expected.contentType, resp.Header().Get("Content-Type"))
|
||||
|
||||
actualBody, err := io.ReadAll(resp.Body)
|
||||
require.NoError(t, err)
|
||||
assert.EqualValues(t, testCase.expected.body, string(actualBody))
|
||||
assert.Equal(t, testCase.expected.body, string(actualBody))
|
||||
}
|
||||
|
||||
type (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue