Skip to content

Commit abb4566

Browse files
committed
fix: make test less dependent on implementation details
1 parent b489505 commit abb4566

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

coderd/httpapi/httpapi_test.go

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -230,14 +230,7 @@ func TestOneWayWebSocket(t *testing.T) {
230230
req.Proto = p.proto
231231

232232
_, _, err := httpapi.OneWayWebSocket[any](httptest.NewRecorder(), req)
233-
require.ErrorContains(
234-
t,
235-
err,
236-
fmt.Sprintf(
237-
"WebSocket protocol violation: handshake request must be at least HTTP/1.1: %q",
238-
p.proto,
239-
),
240-
)
233+
require.ErrorContains(t, err, p.proto)
241234
}
242235
})
243236

0 commit comments

Comments
 (0)