Skip to content

Commit a81e89b

Browse files
committed
fixup! fix(coderd): debugDeploymentHealth: return 503 instead of 404 when health report unavailable
1 parent bd3b114 commit a81e89b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/debug_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ func TestDebugHealth(t *testing.T) {
117117
require.NoError(t, err)
118118
defer res.Body.Close()
119119
_, _ = io.ReadAll(res.Body)
120-
require.Equal(t, http.StatusNotFound, res.StatusCode)
120+
require.Equal(t, http.StatusServiceUnavailable, res.StatusCode)
121121
})
122122

123123
t.Run("Refresh", func(t *testing.T) {

0 commit comments

Comments
 (0)