@@ -15,7 +15,7 @@ import {
1515 isCoordinatorProcess ,
1616 parseWalFormat ,
1717 recoverFromContent ,
18- setLeaderWal ,
18+ setCoordinatorProcess ,
1919 stringCodec ,
2020} from './wal.js' ;
2121
@@ -714,7 +714,7 @@ describe('isCoordinatorProcess', () => {
714714 } ) ;
715715} ) ;
716716
717- describe ( 'setLeaderWal ' , ( ) => {
717+ describe ( 'setCoordinatorProcess ' , ( ) => {
718718 beforeEach ( ( ) => {
719719 // Clean up any existing TEST_ORIGIN_PID
720720 // eslint-disable-next-line functional/immutable-data
@@ -725,7 +725,7 @@ describe('setLeaderWal', () => {
725725 expect ( process . env [ 'TEST_ORIGIN_PID' ] ) . toBeUndefined ( ) ;
726726
727727 const profilerId = `${ Math . round ( performance . timeOrigin ) } ${ process . pid } .1.0` ;
728- setLeaderWal ( 'TEST_ORIGIN_PID' , profilerId ) ;
728+ setCoordinatorProcess ( 'TEST_ORIGIN_PID' , profilerId ) ;
729729
730730 expect ( process . env [ 'TEST_ORIGIN_PID' ] ) . toBe ( profilerId ) ;
731731 } ) ;
@@ -735,14 +735,14 @@ describe('setLeaderWal', () => {
735735 const newProfilerId = `${ Math . round ( performance . timeOrigin ) } ${ process . pid } .2.0` ;
736736
737737 vi . stubEnv ( 'TEST_ORIGIN_PID' , existingProfilerId ) ;
738- setLeaderWal ( 'TEST_ORIGIN_PID' , newProfilerId ) ;
738+ setCoordinatorProcess ( 'TEST_ORIGIN_PID' , newProfilerId ) ;
739739
740740 expect ( process . env [ 'TEST_ORIGIN_PID' ] ) . toBe ( existingProfilerId ) ;
741741 } ) ;
742742
743743 it ( 'should set env var to profiler id' , ( ) => {
744744 const profilerId = `${ Math . round ( performance . timeOrigin ) } ${ process . pid } .1.0` ;
745- setLeaderWal ( 'TEST_ORIGIN_PID' , profilerId ) ;
745+ setCoordinatorProcess ( 'TEST_ORIGIN_PID' , profilerId ) ;
746746
747747 expect ( process . env [ 'TEST_ORIGIN_PID' ] ) . toBe ( profilerId ) ;
748748 } ) ;
0 commit comments