Skip to content

Commit 3c9790e

Browse files
committed
check string in body
1 parent 5ee05b8 commit 3c9790e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

coderd/workspaceapps/db_test.go

+5
Original file line numberDiff line numberDiff line change
@@ -677,6 +677,11 @@ func Test_ResolveRequest(t *testing.T) {
677677
})
678678
// should parse as app and fail to find app "9090ss"
679679
require.False(t, ok)
680+
w := rw.Result()
681+
_ = w.Body.Close()
682+
b, err := io.ReadAll(w.Body)
683+
require.NoError(t, err)
684+
require.Contains(t, string(b), "404 - Application Not Found")
680685
})
681686

682687
t.Run("SubdomainEndsInS", func(t *testing.T) {

0 commit comments

Comments
 (0)