Throttle non-critical Sentry messages (#2110)
* Throttle non-critical Sentry messages * Run all timers in tests
This commit is contained in:
parent
df55c5fdeb
commit
7229cda5a5
3 changed files with 31 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue