@@ -21,7 +21,7 @@ describe('start', () => {
2121 let dataDir : string ;
2222 beforeEach ( async ( ) => {
2323 dataDir = await fs . promises . mkdtemp (
24- path . join ( global . tmpDir , 'polykey-test-' ) ,
24+ path . join ( globalThis . tmpDir , 'polykey-test-' ) ,
2525 ) ;
2626 } ) ;
2727 afterEach ( async ( ) => {
@@ -99,7 +99,7 @@ describe('start', () => {
9999 const statusInfo = ( await status . waitFor ( 'DEAD' ) ) ! ;
100100 expect ( statusInfo . status ) . toBe ( 'DEAD' ) ;
101101 } ,
102- global . defaultTimeout * 2 ,
102+ globalThis . defaultTimeout * 2 ,
103103 ) ;
104104 runTestIfPlatforms ( ) (
105105 'start in background' ,
@@ -202,7 +202,7 @@ describe('start', () => {
202202 const statusInfo2 = await status . waitFor ( 'DEAD' ) ;
203203 expect ( statusInfo2 . status ) . toBe ( 'DEAD' ) ;
204204 } ,
205- global . defaultTimeout * 2 ,
205+ globalThis . defaultTimeout * 2 ,
206206 ) ;
207207 runTestIfPlatforms ( 'docker' ) (
208208 'concurrent starts results in 1 success' ,
@@ -298,7 +298,7 @@ describe('start', () => {
298298 agentProcess1 . kill ( 'SIGQUIT' ) ;
299299 }
300300 } ,
301- global . defaultTimeout * 2 ,
301+ globalThis . defaultTimeout * 2 ,
302302 ) ;
303303 runTestIfPlatforms ( 'docker' ) (
304304 'concurrent with bootstrap results in 1 success' ,
@@ -388,7 +388,7 @@ describe('start', () => {
388388 agentProcess . kill ( 'SIGTERM' ) ;
389389 }
390390 } ,
391- global . defaultTimeout * 2 ,
391+ globalThis . defaultTimeout * 2 ,
392392 ) ;
393393 runTestIfPlatforms ( 'docker' ) (
394394 'start with existing state' ,
@@ -462,7 +462,7 @@ describe('start', () => {
462462 const statusInfo = ( await status . waitFor ( 'DEAD' ) ) ! ;
463463 expect ( statusInfo . status ) . toBe ( 'DEAD' ) ;
464464 } ,
465- global . defaultTimeout * 2 ,
465+ globalThis . defaultTimeout * 2 ,
466466 ) ;
467467 runTestIfPlatforms ( 'docker' ) (
468468 'start when interrupted, requires fresh on next start' ,
@@ -573,7 +573,7 @@ describe('start', () => {
573573 const statusInfo = ( await status . readStatus ( ) ) ! ;
574574 expect ( statusInfo . status ) . toBe ( 'DEAD' ) ;
575575 } ,
576- global . defaultTimeout * 2 ,
576+ globalThis . defaultTimeout * 2 ,
577577 ) ;
578578 runTestIfPlatforms ( 'docker' ) (
579579 'start from recovery code' ,
@@ -715,7 +715,7 @@ describe('start', () => {
715715 agentProcess4 . kill ( 'SIGTERM' ) ;
716716 await execUtils . processExit ( agentProcess4 ) ;
717717 } ,
718- global . defaultTimeout * 3 ,
718+ globalThis . defaultTimeout * 3 ,
719719 ) ;
720720 runTestIfPlatforms ( 'docker' ) (
721721 'start with network configuration' ,
@@ -770,7 +770,7 @@ describe('start', () => {
770770 // Check for graceful exit
771771 await status . waitFor ( 'DEAD' ) ;
772772 } ,
773- global . defaultTimeout * 2 ,
773+ globalThis . defaultTimeout * 2 ,
774774 ) ;
775775 runTestIfPlatforms ( 'docker' ) (
776776 'start with PK_ROOT_KEY env override' ,
@@ -810,7 +810,7 @@ describe('start', () => {
810810 // Check for graceful exit
811811 await status . waitFor ( 'DEAD' ) ;
812812 } ,
813- global . defaultTimeout * 2 ,
813+ globalThis . defaultTimeout * 2 ,
814814 ) ;
815815 runTestIfPlatforms ( 'docker' ) (
816816 'start with --root-key-file override' ,
@@ -861,7 +861,7 @@ describe('start', () => {
861861 // Check for graceful exit
862862 await status . waitFor ( 'DEAD' ) ;
863863 } ,
864- global . defaultTimeout * 2 ,
864+ globalThis . defaultTimeout * 2 ,
865865 ) ;
866866 runDescribeIfPlatforms ( ) ( 'start with global agent' , ( ) => {
867867 let agentDataDir ;
@@ -878,7 +878,7 @@ describe('start', () => {
878878 beforeEach ( async ( ) => {
879879 // Additional seed node
880880 agentDataDir = await fs . promises . mkdtemp (
881- path . join ( global . tmpDir , 'polykey-test-' ) ,
881+ path . join ( globalThis . tmpDir , 'polykey-test-' ) ,
882882 ) ;
883883 ( { agentStatus : agent1Status , agentClose : agent1Close } =
884884 await execUtils . setupTestAgent ( globalRootKeyPems [ 0 ] , logger ) ) ;
@@ -962,7 +962,7 @@ describe('start', () => {
962962 mockedConfigDefaultsNetwork . mockRestore ( ) ;
963963 await status . waitFor ( 'DEAD' ) ;
964964 } ,
965- global . defaultTimeout * 2 ,
965+ globalThis . defaultTimeout * 2 ,
966966 ) ;
967967 test (
968968 'start with seed nodes environment variable' ,
@@ -1025,7 +1025,7 @@ describe('start', () => {
10251025 mockedConfigDefaultsNetwork . mockRestore ( ) ;
10261026 await status . waitFor ( 'DEAD' ) ;
10271027 } ,
1028- global . defaultTimeout * 2 ,
1028+ globalThis . defaultTimeout * 2 ,
10291029 ) ;
10301030 } ) ;
10311031} ) ;
0 commit comments