Skip to content

Commit 4c76b27

Browse files
committed
make test more robust
1 parent e938ca2 commit 4c76b27

File tree

1 file changed

+3
-1
lines changed
  • packages/e2e-tests/test-applications/node-experimental-fastify-app/tests

1 file changed

+3
-1
lines changed

packages/e2e-tests/test-applications/node-experimental-fastify-app/tests/server.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ test('Sends transactions to Sentry', async ({ baseURL }) => {
4444

4545
console.log(`Polling for transaction eventIds: ${JSON.stringify(transactionIds)}`);
4646

47-
expect(transactionIds.length).toBe(1);
47+
// Note: This may be more than 1, as spans are flushed later, so we may get a flushed transaction from a different test as well here
48+
// We just test that we get at least one
49+
expect(transactionIds.length).toBeGreaterThan(0);
4850

4951
await Promise.all(
5052
transactionIds.map(async (transactionId: string) => {

0 commit comments

Comments
 (0)