Skip to content

Commit 8bfe1f7

Browse files
committed
fix test assert
1 parent 3f742ba commit 8bfe1f7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

coderd/httpapi/httpapi.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ type Error struct {
8080
// to prevent leaking existence of resources.
8181
func ResourceNotFound(rw http.ResponseWriter) {
8282
Write(rw, http.StatusNotFound, Response{
83-
Message: fmt.Sprintf("Resource not found"),
83+
Message: "Resource not found",
8484
})
8585
}
8686

coderd/workspacebuilds_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func TestWorkspaceBuildByBuildNumber(t *testing.T) {
9292
var apiError *codersdk.Error
9393
require.ErrorAs(t, err, &apiError)
9494
require.Equal(t, http.StatusNotFound, apiError.StatusCode())
95-
require.ErrorContains(t, apiError, "Workspace \"workspaceName\" does not exist.")
95+
require.ErrorContains(t, apiError, "Resource not found")
9696
})
9797

9898
t.Run("WorkspaceBuildNotFound", func(t *testing.T) {

0 commit comments

Comments
 (0)