Skip to content

Commit 136a63a

Browse files
dreamorosiijemmy
andauthored
Update packages/tracer/tests/unit/Tracer.test.ts
Co-authored-by: ijemmy <ijemmy@users.noreply.github.com>
1 parent 9505847 commit 136a63a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/tracer/tests/unit/Tracer.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1330,7 +1330,9 @@ describe('Class: Tracer', () => {
13301330
// Here we assert that the subsegment.close() (inside the finally of decorator) is called before the other otherDummyMethodSpy method
13311331
// that should always be called after the handler has returned. If subsegment.close() is called after it means the
13321332
// decorator is NOT awaiting the method which would cause the test to fail.
1333-
expect(subsegmentCloseSpy.mock.invocationCallOrder[0]).toBeLessThan(otherDummyMethodSpy.mock.invocationCallOrder[0]);
1333+
const dummyCallOrder = subsegmentCloseSpy.mock.invocationCallOrder[0];
1334+
const otherDummyCallOrder = otherDummyMethodSpy.mock.invocationCallOrder[0];
1335+
expect(dummyCallOrder).toBeLessThan(otherDummyCallOrder);
13341336

13351337
});
13361338

0 commit comments

Comments
 (0)