Skip to content

Commit b91c66c

Browse files
committed
Move newline to inside the expected error
Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
1 parent ab2d17d commit b91c66c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

storage/remote/client_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ func TestReadClient(t *testing.T) {
342342
httpHandler: http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
343343
http.Error(w, "test error", http.StatusBadRequest)
344344
}),
345-
expectedErrorContains: "test error",
345+
expectedErrorContains: "test error\n",
346346
unwrap: true,
347347
},
348348
}
@@ -377,7 +377,7 @@ func TestReadClient(t *testing.T) {
377377
require.ErrorContains(t, err, test.expectedErrorContains)
378378
if test.unwrap {
379379
err = errors.Unwrap(err)
380-
require.EqualError(t, err, test.expectedErrorContains+"\n")
380+
require.EqualError(t, err, test.expectedErrorContains)
381381
}
382382
return
383383
}

0 commit comments

Comments
 (0)