diff options
author | dan <dan.abramov@gmail.com> | 2023-12-06 16:32:47 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-06 16:32:47 +0000 |
commit | 7229cda5a52192266d8e0ee202ae3d3fee7c66a3 (patch) | |
tree | e20fa8773a737e3fd05447ab5890bafb1b3b55a7 /src/logger/__tests__/logger.test.ts | |
parent | df55c5fdeb5e67caac13dfdb77e1a80330cdd874 (diff) | |
download | voidsky-7229cda5a52192266d8e0ee202ae3d3fee7c66a3.tar.zst |
Throttle non-critical Sentry messages (#2110)
* Throttle non-critical Sentry messages * Run all timers in tests
Diffstat (limited to 'src/logger/__tests__/logger.test.ts')
-rw-r--r-- | src/logger/__tests__/logger.test.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/logger/__tests__/logger.test.ts b/src/logger/__tests__/logger.test.ts index f8b588778..12d60abaa 100644 --- a/src/logger/__tests__/logger.test.ts +++ b/src/logger/__tests__/logger.test.ts @@ -179,6 +179,7 @@ describe('general functionality', () => { level: 'debug', // Sentry bug, log becomes debug timestamp: sentryTimestamp, }) + jest.runAllTimers() expect(Sentry.captureMessage).toHaveBeenCalledWith(message, { level: 'log', tags: undefined, @@ -193,6 +194,7 @@ describe('general functionality', () => { level: 'warning', timestamp: sentryTimestamp, }) + jest.runAllTimers() expect(Sentry.captureMessage).toHaveBeenCalledWith(message, { level: 'warning', tags: undefined, |