Skip to content

Commit fb275d7

Browse files
romtsnclaude
andcommitted
test(replay): Return CompletedFuture from close-race test mock to match executor contract
The executorThatClosesFirst mock ran tasks inline but returned null, modeling a rejection path that never occurs during inline execution. Same fix as the inlineExecutor() fixture in cd3a7c0. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 3ecc6a6 commit fb275d7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sentry-android-replay/src/test/java/io/sentry/android/replay/screenshot/PixelCopyStrategyTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class PixelCopyStrategyTest {
141141
// PixelCopyStrategy swallows the exception, so we have to capture it here and rethrow later
142142
failure.set(e)
143143
}
144-
null
144+
CompletedFuture
145145
}
146146

147147
strategy = fixture.getSut(executor = executorThatClosesFirst)

0 commit comments

Comments
 (0)