Skip to content

Commit 727eca4

Browse files
committed
simplify test
1 parent 4fe7511 commit 727eca4

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

packages/core/test/lib/tracing/trace.test.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -699,20 +699,16 @@ describe('startSpan', () => {
699699
client = new TestClient(options);
700700
setCurrentClient(client);
701701

702-
startSpan({ name: 'outer', attributes: { test1: 'aa', test2: 'aa', test3: 'bb' } }, outerSpan => {
702+
startSpan({ name: 'outer' }, outerSpan => {
703703
expect(outerSpan).toBeDefined();
704704
expect(spanIsSampled(outerSpan)).toBe(false);
705705
});
706706

707707
expect(tracesSampler).toBeCalledTimes(1);
708708
expect(tracesSampler).toHaveBeenLastCalledWith({
709709
parentSampled: undefined,
710+
attributes: {},
710711
name: 'outer',
711-
attributes: {
712-
test1: 'aa',
713-
test2: 'aa',
714-
test3: 'bb',
715-
},
716712
inheritOrSampleWith: expect.any(Function),
717713
});
718714
});

0 commit comments

Comments
 (0)