Throttle non-critical Sentry messages (#2110)
* Throttle non-critical Sentry messages * Run all timers in tests
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user