1
0
Fork 0

Adding upstream version 1.0.1.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-05-26 05:48:19 +02:00
parent 4a5c02e4d1
commit b285fe25c2
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
13 changed files with 86 additions and 43 deletions

View file

@ -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 (