Skip to content

Commit 643aba7

Browse files
committed
fix indeterministic request id failing di snapshot test (#6084)
1 parent c021b31 commit 643aba7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

integration-tests/debugger/snapshot.spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ describe('Dynamic Instrumentation', function () {
8787
// There's no reason to test the `request` object 100%, instead just check its fingerprint
8888
assert.deepEqual(Object.keys(request), ['type', 'fields'])
8989
assert.equal(request.type, 'Request')
90-
assert.deepEqual(request.fields.id, { type: 'string', value: 'req-1' })
90+
assert.equal(request.fields.id.type, 'string')
91+
assert.match(request.fields.id.value, /^req-\d+$/)
9192
assert.deepEqual(request.fields.params, {
9293
type: 'NullObject', fields: { name: { type: 'string', value: 'foo' } }
9394
})

0 commit comments

Comments
 (0)