@@ -3394,9 +3394,6 @@ internal class PostHogTest {
33943394 sut.addExceptionStep(" B" )
33953395 sut.addExceptionStep(" C" )
33963396
3397- // drain the queue so the buffered steps are recorded before capture reads them
3398- queueExecutor.submit { }.get()
3399-
34003397 sut.captureException(RuntimeException (" boom" ))
34013398
34023399 queueExecutor.shutdownAndAwaitTermination()
@@ -3420,7 +3417,6 @@ internal class PostHogTest {
34203417 val sut = getSut(url.toString(), preloadFeatureFlags = false , reloadFeatureFlags = false )
34213418
34223419 sut.addExceptionStep(" buffered" )
3423- queueExecutor.submit { }.get()
34243420
34253421 sut.captureException(
34263422 RuntimeException (" boom" ),
@@ -3447,13 +3443,11 @@ internal class PostHogTest {
34473443
34483444 sut.addExceptionStep(" A" )
34493445 sut.addExceptionStep(" B" )
3450- queueExecutor.submit { }.get()
34513446 sut.captureException(RuntimeException (" first" ))
34523447
34533448 sut.reset()
34543449
34553450 sut.addExceptionStep(" C" )
3456- queueExecutor.submit { }.get()
34573451 sut.captureException(RuntimeException (" second" ))
34583452
34593453 // flushAt is high so neither capture triggers a flush on its own; flush explicitly
@@ -3495,7 +3489,6 @@ internal class PostHogTest {
34953489 )
34963490
34973491 sut.addExceptionStep(" A" )
3498- queueExecutor.submit { }.get()
34993492 sut.captureException(RuntimeException (" boom" ))
35003493
35013494 queueExecutor.shutdownAndAwaitTermination()
0 commit comments