@@ -2,7 +2,6 @@ import anyTest, { TestFn } from 'ava';
2
2
import { v4 as uuid4 } from 'uuid' ;
3
3
import { WorkflowFailedError } from '@temporalio/client' ;
4
4
import { TestWorkflowEnvironment , workflowInterceptorModules } from '@temporalio/testing' ;
5
- import { Connection } from '@temporalio/testing/lib/connection' ;
6
5
import { bundleWorkflowCode , WorkflowBundleWithSourceMap } from '@temporalio/worker' ;
7
6
import {
8
7
assertFromWorkflow ,
@@ -79,11 +78,6 @@ test.serial('TestEnvironment can toggle between normal and skipped time', async
79
78
} ) ;
80
79
81
80
test . serial ( 'TestEnvironment sleep can be used to delay activity completion' , async ( t ) => {
82
- // TODO: check why this fails on windows
83
- if ( process . platform === 'win32' ) {
84
- t . pass ( ) ;
85
- return ;
86
- }
87
81
const { client, nativeConnection, sleep } = t . context . testEnv ;
88
82
89
83
const worker = await Worker . create ( {
@@ -106,26 +100,14 @@ test.serial('TestEnvironment sleep can be used to delay activity completion', as
106
100
t . is ( winner , expectedWinner ) ;
107
101
} ;
108
102
await worker . runUntil ( async ( ) => {
109
- // TODO: there's an issue with the Java test server where if an activity
110
- // does not complete before its scheduling workflow, time skipping stays
111
- // locked.
112
- // If the order of the below 2 statements is reversed, this test will hang.
113
103
await run ( 'activity' ) ;
114
104
await run ( 'timer' ) ;
115
105
} ) ;
116
106
t . pass ( ) ;
117
107
} ) ;
118
108
119
109
test . serial ( 'TestEnvironment sleep can be used to delay sending a signal' , async ( t ) => {
120
- // TODO: check why this fails on windows
121
- if ( process . platform === 'win32' ) {
122
- t . pass ( ) ;
123
- return ;
124
- }
125
110
const { client, nativeConnection, sleep } = t . context . testEnv ;
126
- // TODO: due to the test server issue mentioned in the test avove we need to manually unlock time skipping
127
- // for the current test to balance out the time skipping lock counter.
128
- await ( t . context . testEnv . connection as Connection ) . testService . unlockTimeSkipping ( { } ) ;
129
111
130
112
const worker = await Worker . create ( {
131
113
connection : nativeConnection ,
0 commit comments