@@ -121,7 +121,7 @@ describe("unittests:: sys:: symlinkWatching::", () => {
121
121
verifyEventAndFileNames ( `${ opType } :: link` , linkResult . actual , expectedResult ) ;
122
122
}
123
123
deferred . resolve ( ) ;
124
- } , 4000 ) ;
124
+ } , ! ! process . env . CI ? 1000 : 500 ) ;
125
125
return deferred . promise ;
126
126
}
127
127
@@ -150,6 +150,19 @@ describe("unittests:: sys:: symlinkWatching::", () => {
150
150
( ts . isString ( expected . event ) ? actual . event === expected . event : ts . contains ( expected . event , actual . event ) ) ;
151
151
}
152
152
153
+ function osFlavorToString ( osFlavor : TestServerHostOsFlavor ) {
154
+ switch ( osFlavor ) {
155
+ case TestServerHostOsFlavor . Windows :
156
+ return "Windows" ;
157
+ case TestServerHostOsFlavor . MacOs :
158
+ return "MacOs" ;
159
+ case TestServerHostOsFlavor . Linux :
160
+ return "Linux" ;
161
+ default :
162
+ ts . Debug . assertNever ( osFlavor ) ;
163
+ }
164
+ }
165
+
153
166
interface FsEventsForWatchDirectory extends Record < string , readonly ExpectedEventAndFileName [ ] | undefined > {
154
167
// The first time events are most of the time are not predictable, so just create random file for that reason
155
168
init ?: readonly ExpectedEventAndFileName [ ] ;
@@ -169,7 +182,7 @@ describe("unittests:: sys:: symlinkWatching::", () => {
169
182
link : string ,
170
183
osFlavor : TestServerHostOsFlavor ,
171
184
) {
172
- it ( `watchDirectory using fsEvents` , async ( ) => {
185
+ it ( `watchDirectory using fsEvents ${ osFlavorToString ( osFlavor ) } ` , async ( ) => {
173
186
const tableOfEvents : FsEventsForWatchDirectory = osFlavor === TestServerHostOsFlavor . MacOs ?
174
187
{
175
188
fileCreate : [
@@ -443,7 +456,7 @@ describe("unittests:: sys:: symlinkWatching::", () => {
443
456
parallelLinkFileDelete : undefined ,
444
457
} ;
445
458
446
- it ( `recursive watchDirectory using fsEvents` , async ( ) => {
459
+ it ( `recursive watchDirectory using fsEvents ${ osFlavorToString ( osFlavor ) } ` , async ( ) => {
447
460
await testWatchDirectoryOperations (
448
461
sys ,
449
462
fsWatch ,
@@ -466,7 +479,7 @@ describe("unittests:: sys:: symlinkWatching::", () => {
466
479
) ;
467
480
} ) ;
468
481
469
- it ( `recursive watchDirectory using fsEvents when linked in same folder` , async ( ) => {
482
+ it ( `recursive watchDirectory using fsEvents when linked in same folder ${ osFlavorToString ( osFlavor ) } ` , async ( ) => {
470
483
await testWatchDirectoryOperations (
471
484
sys ,
472
485
fsWatch ,
@@ -485,7 +498,7 @@ describe("unittests:: sys:: symlinkWatching::", () => {
485
498
) ;
486
499
} ) ;
487
500
488
- it ( `recursive watchDirectory using fsEvents when links not in directory` , async ( ) => {
501
+ it ( `recursive watchDirectory using fsEvents when links not in directory ${ osFlavorToString ( osFlavor ) } ` , async ( ) => {
489
502
await testWatchDirectoryOperations (
490
503
sys ,
491
504
fsWatch ,
0 commit comments