Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions E2E/Client/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
await Step("unauthenticated query stream is refused", async cancellation =>
{
using var response = await http.GetAsync("/.cratis/queries/sse", HttpCompletionOption.ResponseHeadersRead, cancellation);
return response.StatusCode == HttpStatusCode.OK
? throw new InvalidOperationException("an unauthenticated caller was served the query stream")
: $"status {(int)response.StatusCode}";
return response.StatusCode == HttpStatusCode.Unauthorized
? $"status {(int)response.StatusCode}"
: throw new InvalidOperationException($"an unauthenticated caller got status {(int)response.StatusCode} for the query stream, expected 401");
});

await Step("client credentials are exchanged for a token", async cancellation =>
Expand Down
Loading