Skip to content

Commit e4be7f3

Browse files
committed
only check for release on github ci
1 parent 81ea690 commit e4be7f3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dev-packages/bun-integration-tests/expect.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ export function expectedEvent(event: Event, { sdk }: { sdk: 'bun' | 'hono' }): E
5959
modules: expect.any(Object),
6060
sdk: getSdk(sdk),
6161
server_name: expect.any(String),
62+
// release is auto-detected from GitHub CI env vars, so only expect it if we know it will be there
63+
...(process.env.GITHUB_SHA ? { release: expect.any(String) } : {}),
6264
...event,
6365
contexts: defaultContexts(event.contexts),
6466
});
@@ -79,7 +81,8 @@ export function eventEnvelope(
7981
trace_id: UUID_MATCHER,
8082
sample_rate: expect.any(String),
8183
sampled: expect.any(String),
82-
...(event.release !== undefined && { release: expect.any(String) }),
84+
// release is auto-detected from GitHub CI env vars, so only expect it if we know it will be there
85+
...(process.env.GITHUB_SHA ? { release: expect.any(String) } : {}),
8386
...(includeSampleRand && { sample_rand: expect.stringMatching(/^[01](\.\d+)?$/) }),
8487
},
8588
},

0 commit comments

Comments
 (0)