Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,11 @@ class SentryExecutorServiceTest {
future.cancel(true)
}
assertEquals(1000, executor.queue.size)

// Submit should purge cancelled scheduled jobs
sentryExecutor.submit {}
assertEquals(1, executor.queue.size)
// The queue size should be 1, but if the executor thread runs right before we check the size,
// it returns 0
assertTrue(executor.queue.size < 2)
}
}
Loading