We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab2d17d commit b91c66cCopy full SHA for b91c66c
storage/remote/client_test.go
@@ -342,7 +342,7 @@ func TestReadClient(t *testing.T) {
342
httpHandler: http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
343
http.Error(w, "test error", http.StatusBadRequest)
344
}),
345
- expectedErrorContains: "test error",
+ expectedErrorContains: "test error\n",
346
unwrap: true,
347
},
348
}
@@ -377,7 +377,7 @@ func TestReadClient(t *testing.T) {
377
require.ErrorContains(t, err, test.expectedErrorContains)
378
if test.unwrap {
379
err = errors.Unwrap(err)
380
- require.EqualError(t, err, test.expectedErrorContains+"\n")
+ require.EqualError(t, err, test.expectedErrorContains)
381
382
return
383
0 commit comments