@@ -38,8 +38,8 @@ async function setValidator(validator: Address, state: boolean) {
3838}
3939
4040// Tests can be enabled once we run one node per integration test
41- describe . skip ( 'successfully get validators' , ( ) => {
42- it ( 'when disabling the same validator multiple time ' , async ( ) => {
41+ describe ( 'successfully get validators' , ( ) => {
42+ it ( 'when disabling the same validator multiple times ' , async ( ) => {
4343 const randomAccount = privateKeyToAccount ( generatePrivateKey ( ) ) . address ;
4444
4545 const { isAccurate : isAccurateInitially , validators : initialValidators } = await getValidators (
@@ -48,8 +48,11 @@ describe.skip('successfully get validators', () => {
4848 rollup : l3Rollup ,
4949 } ,
5050 ) ;
51- // By default, chains from nitro testnode has 10 validators
52- expect ( initialValidators ) . toHaveLength ( 10 ) ;
51+
52+ // By default, chains from nitro testnode has 11 validators
53+ // https://github.com/OffchainLabs/nitro-testnode/blob/de8cf4edec0d12e5ef1b7623e54e35ddb579ff0b/test-node.bash#L634
54+ // https://github.com/OffchainLabs/nitro-contracts/blob/47a9c034bc082256d498f8031fab1a37c37a123c/scripts/rollupCreation.ts#L250-L257
55+ expect ( initialValidators ) . toHaveLength ( 11 ) ;
5356 expect ( isAccurateInitially ) . toBeTruthy ( ) ;
5457
5558 await setValidator ( randomAccount , false ) ;
@@ -79,7 +82,7 @@ describe.skip('successfully get validators', () => {
7982 expect ( isAccurateFinal ) . toBeTruthy ( ) ;
8083 } ) ;
8184
82- it ( 'when enabling the same validators multiple time ' , async ( ) => {
85+ it ( 'when enabling the same validators multiple times ' , async ( ) => {
8386 const randomAccount = privateKeyToAccount ( generatePrivateKey ( ) ) . address ;
8487
8588 const { isAccurate : isAccurateInitially , validators : initialValidators } = await getValidators (
@@ -88,8 +91,10 @@ describe.skip('successfully get validators', () => {
8891 rollup : l3Rollup ,
8992 } ,
9093 ) ;
91- // By default, chains from nitro testnode has 10 validators
92- expect ( initialValidators ) . toHaveLength ( 10 ) ;
94+ // By default, chains from nitro testnode has 11 validators
95+ // https://github.com/OffchainLabs/nitro-testnode/blob/de8cf4edec0d12e5ef1b7623e54e35ddb579ff0b/test-node.bash#L634
96+ // https://github.com/OffchainLabs/nitro-contracts/blob/47a9c034bc082256d498f8031fab1a37c37a123c/scripts/rollupCreation.ts#L250-L257
97+ expect ( initialValidators ) . toHaveLength ( 11 ) ;
9398 expect ( isAccurateInitially ) . toBeTruthy ( ) ;
9499
95100 await setValidator ( randomAccount , true ) ;
@@ -113,7 +118,10 @@ describe.skip('successfully get validators', () => {
113118 client ,
114119 { rollup : l3Rollup } ,
115120 ) ;
116- expect ( initialValidators ) . toHaveLength ( 10 ) ;
121+ // By default, chains from nitro testnode has 11 validators
122+ // https://github.com/OffchainLabs/nitro-testnode/blob/de8cf4edec0d12e5ef1b7623e54e35ddb579ff0b/test-node.bash#L634
123+ // https://github.com/OffchainLabs/nitro-contracts/blob/47a9c034bc082256d498f8031fab1a37c37a123c/scripts/rollupCreation.ts#L250-L257
124+ expect ( initialValidators ) . toHaveLength ( 11 ) ;
117125 expect ( isAccurateInitially ) . toBeTruthy ( ) ;
118126
119127 const firstValidator = initialValidators [ 0 ] ;
@@ -129,7 +137,10 @@ describe.skip('successfully get validators', () => {
129137 client ,
130138 { rollup : l3Rollup } ,
131139 ) ;
132- expect ( initialValidators ) . toHaveLength ( 10 ) ;
140+ // By default, chains from nitro testnode has 11 validators
141+ // https://github.com/OffchainLabs/nitro-testnode/blob/de8cf4edec0d12e5ef1b7623e54e35ddb579ff0b/test-node.bash#L634
142+ // https://github.com/OffchainLabs/nitro-contracts/blob/47a9c034bc082256d498f8031fab1a37c37a123c/scripts/rollupCreation.ts#L250-L257
143+ expect ( initialValidators ) . toHaveLength ( 11 ) ;
133144 expect ( isAccurateInitially ) . toBeTruthy ( ) ;
134145
135146 const lastValidator = initialValidators [ initialValidators . length - 1 ] ;
0 commit comments