Skip to content

Commit

Permalink
Fix status code
Browse files Browse the repository at this point in the history
  • Loading branch information
hansott committed Jul 25, 2024
1 parent 5e58c8d commit a8e9e2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/agent/api/ReportingAPINodeHTTP.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ t.test("it deals with 400", async () => {
});

t.test("it deals with 500", async () => {
const stop = await createTestEndpoint({ statusCode: 400, port: 3007 });
const stop = await createTestEndpoint({ statusCode: 500, port: 3007 });
const api = new ReportingAPINodeHTTP(new URL("http://localhost:3007"));
t.same(await api.report(new Token("123"), generateStartedEvent(), 1000), {
success: false,
Expand Down

0 comments on commit a8e9e2a

Please sign in to comment.