Skip to content

Commit 170517b

Browse files
github-managerclaude
andcommitted
fix: remove ReplaySubject windowTime to prevent dangling timers after tests
ReplaySubject(2, 1000) schedules recurring setTimeout calls to evict stale buffered events. These timers outlive the test run and keep Node.js alive after Cucumber finishes, preventing clean process exit on CI. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 827adf3 commit 170517b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/integration/features/shared.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Given(/someone called (\w+)/, async function(name: string) {
106106

107107
const projection = (raw: MessageEvent) => JSON.parse(raw.data.toString('utf8'))
108108

109-
const replaySubject = new ReplaySubject(2, 1000)
109+
const replaySubject = new ReplaySubject(2)
110110

111111
fromEvent(connection, 'message').pipe(map(projection) as any,takeUntil(close)).subscribe(replaySubject)
112112

0 commit comments

Comments
 (0)