@@ -22,7 +22,7 @@ import { SdkFlag, SdkFlags } from '@temporalio/workflow/lib/flags';
22
22
import { ReusableVMWorkflow , ReusableVMWorkflowCreator } from '@temporalio/worker/lib/workflow/reusable-vm' ;
23
23
import { parseWorkflowCode } from '@temporalio/worker/lib/worker' ;
24
24
import * as activityFunctions from './activities' ;
25
- import { cleanStackTrace , compareStackTraceIdentifiers , REUSE_V8_CONTEXT , u8 } from './helpers' ;
25
+ import { cleanStackTrace , compareStackTrace , REUSE_V8_CONTEXT , u8 } from './helpers' ;
26
26
import { ProcessedSignal } from './workflows' ;
27
27
28
28
export interface Context {
@@ -466,7 +466,7 @@ test('throwAsync', async (t) => {
466
466
const req = cleanWorkflowFailureStackTrace ( await activate ( t , makeStartWorkflow ( workflowType ) ) ) ;
467
467
const actualStackTrace = removeWorkflowFailureStackTrace ( req ) ;
468
468
compareCompletion ( t , req , makeSuccess ( [ makeFailWorkflowExecution ( 'failure' ) ] ) ) ;
469
- compareStackTraceIdentifiers (
469
+ compareStackTrace (
470
470
t ,
471
471
actualStackTrace ,
472
472
dedent `
@@ -782,7 +782,7 @@ test('interruptableWorkflow', async (t) => {
782
782
[ SdkFlags . ProcessWorkflowActivationJobsAsSingleBatch ]
783
783
)
784
784
) ;
785
- compareStackTraceIdentifiers (
785
+ compareStackTrace (
786
786
t ,
787
787
stackTrace ,
788
788
// The stack trace is weird here and might confuse users, it might be a JS limitation
@@ -813,7 +813,7 @@ test('failSignalWorkflow', async (t) => {
813
813
[ SdkFlags . ProcessWorkflowActivationJobsAsSingleBatch ]
814
814
)
815
815
) ;
816
- compareStackTraceIdentifiers (
816
+ compareStackTrace (
817
817
t ,
818
818
stackTrace ,
819
819
dedent `
@@ -853,7 +853,7 @@ test('asyncFailSignalWorkflow', async (t) => {
853
853
[ SdkFlags . ProcessWorkflowActivationJobsAsSingleBatch ]
854
854
)
855
855
) ;
856
- compareStackTraceIdentifiers (
856
+ compareStackTrace (
857
857
t ,
858
858
stackTrace ,
859
859
dedent `
@@ -1467,7 +1467,7 @@ test('cancellationErrorIsPropagated', async (t) => {
1467
1467
} ,
1468
1468
] )
1469
1469
) ;
1470
- compareStackTraceIdentifiers (
1470
+ compareStackTrace (
1471
1471
t ,
1472
1472
stackTrace ,
1473
1473
dedent `
@@ -1666,7 +1666,7 @@ test('resolve activity with failure - http', async (t) => {
1666
1666
) ;
1667
1667
const stackTrace = removeWorkflowFailureStackTrace ( completion ) ;
1668
1668
compareCompletion ( t , completion , makeSuccess ( [ makeFailWorkflowExecution ( 'Connection timeout' , 'MockError' ) ] ) ) ;
1669
- compareStackTraceIdentifiers ( t , stackTrace , 'ApplicationFailure: Connection timeout' ) ;
1669
+ compareStackTrace ( t , stackTrace , 'ApplicationFailure: Connection timeout' ) ;
1670
1670
}
1671
1671
} ) ;
1672
1672
@@ -1879,7 +1879,7 @@ test('tryToContinueAfterCompletion', async (t) => {
1879
1879
const completion = cleanWorkflowFailureStackTrace ( await activate ( t , makeStartWorkflow ( workflowType ) ) ) ;
1880
1880
const stackTrace = removeWorkflowFailureStackTrace ( completion ) ;
1881
1881
compareCompletion ( t , completion , makeSuccess ( [ makeFailWorkflowExecution ( 'fail before continue' ) ] ) ) ;
1882
- compareStackTraceIdentifiers (
1882
+ compareStackTrace (
1883
1883
t ,
1884
1884
stackTrace ,
1885
1885
dedent `
0 commit comments