File tree 1 file changed +3
-1
lines changed
packages/tracer/tests/unit 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1330,7 +1330,9 @@ describe('Class: Tracer', () => {
1330
1330
// Here we assert that the subsegment.close() (inside the finally of decorator) is called before the other otherDummyMethodSpy method
1331
1331
// that should always be called after the handler has returned. If subsegment.close() is called after it means the
1332
1332
// 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 ) ;
1334
1336
1335
1337
} ) ;
1336
1338
You can’t perform that action at this time.
0 commit comments