Skip to content

Commit

Permalink
Update assumptions after PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswk committed Nov 20, 2023
1 parent 404d610 commit 75c83e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/metrics.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ test('sendMetrics should stop on 401', async (t) => {
await metrics.sendMetrics();
// @ts-expect-error actually a private field, but we access it for tests
t.true(metrics.disabled);
t.is(metrics.getFailures(), -1);
t.is(metrics.getFailures(), 0);
});
test('sendMetrics should stop on 403', async (t) => {
const url = getUrl();
Expand All @@ -463,7 +463,7 @@ test('sendMetrics should stop on 403', async (t) => {
await metrics.sendMetrics();
// @ts-expect-error actually a private field, but we access it for tests
t.true(metrics.disabled);
t.is(metrics.getFailures(), -1);
t.is(metrics.getFailures(), 0);
});
test('sendMetrics should backoff on 429', async (t) => {
const url = getUrl();
Expand Down

0 comments on commit 75c83e9

Please sign in to comment.