Skip to content

Commit b18abae

Browse files
mydeaclaude
andauthored
test(node): Unflake captureMessage with_level test (#25358)
The `with_level` scenario sends six `captureMessage` calls back to back, and the test expected their events to arrive in call order. Events are prepared asynchronously before being sent, so the SDK doesn't guarantee that order, and the test occasionally failed with `info_message` arriving before `debug_message`. The test now uses `.unordered()`, so it still asserts all six messages with their levels but no longer depends on arrival order. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 6dd949c commit b18abae

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • dev-packages/node-integration-tests/suites/public-api/captureMessage/with_level

‎dev-packages/node-integration-tests/suites/public-api/captureMessage/with_level/test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ test('should capture with different severity levels', async () => {
1313
.expect({ event: { message: 'error_message', level: 'error' } })
1414
.expect({ event: { message: 'fatal_message', level: 'fatal' } })
1515
.expect({ event: { message: 'log_message', level: 'log' } })
16+
.unordered()
1617
.start()
1718
.completed();
1819
});

0 commit comments

Comments
 (0)