Skip to content

Commit

Permalink
test: fix workers/repository/stats
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieMagee committed Nov 14, 2022
1 parent ea1026a commit b86c665
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/workers/repository/stats.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ describe('workers/repository/stats', () => {
memCache.get.mockImplementationOnce(() => httpStats as any);
expect(printRequestStats()).toBeUndefined();
expect(log.trace).toHaveBeenCalledOnce();
expect(log.debug).toHaveBeenCalledTimes(3);
expect(log.debug).toHaveBeenCalledTimes(2);
expect(log.trace.mock.calls[0][0]).toMatchInlineSnapshot(`
{
"allRequests": [
Expand Down Expand Up @@ -127,7 +127,7 @@ describe('workers/repository/stats', () => {
},
}
`);
expect(log.debug.mock.calls[1][0]).toMatchInlineSnapshot(`
expect(log.debug.mock.calls[0][0]).toMatchInlineSnapshot(`
{
"get": {
"avgMs": 40,
Expand All @@ -143,7 +143,7 @@ describe('workers/repository/stats', () => {
},
}
`);
expect(log.debug.mock.calls[2][0]).toMatchInlineSnapshot(`
expect(log.debug.mock.calls[1][0]).toMatchInlineSnapshot(`
{
"hostStats": {
"api.github.com": {
Expand Down

0 comments on commit b86c665

Please sign in to comment.