@@ -13,7 +13,8 @@ const {
1313} = require ( '../helpers/deployers' ) ;
1414
1515const verifiersCount = 3 ;
16- const phaseDuration = 5 * verifiersCount * 2 ;
16+ const proposePhaseDuration = 5 * verifiersCount * 2 ;
17+ const revealPhaseDuration = 5 * verifiersCount * 2 ;
1718const requirePercentOfTokens = 70 ;
1819
1920contract ( 'Chain: testing active/non active verifiers' , ( accounts ) => {
@@ -27,7 +28,7 @@ contract('Chain: testing active/non active verifiers', (accounts) => {
2728
2829 before ( async ( ) => {
2930 ministroChain = await deployChain (
30- accounts [ 0 ] , verifiersAddr , phaseDuration ,
31+ accounts [ 0 ] , verifiersAddr , proposePhaseDuration , revealPhaseDuration ,
3132 requirePercentOfTokens , true ,
3233 ) ;
3334
@@ -49,12 +50,12 @@ contract('Chain: testing active/non active verifiers', (accounts) => {
4950
5051 describe ( 'when we are in propose phase' , async ( ) => {
5152 before ( async ( ) => {
52- await mineUntilPropose ( phaseDuration ) ;
53+ await mineUntilPropose ( proposePhaseDuration , revealPhaseDuration ) ;
5354 } ) ;
5455
5556 it ( 'should NOT be possible to propose' , async ( ) => {
5657 const awaits = [ ] ;
57- const blockHeight = await getBlockHeight ( phaseDuration ) ;
58+ const blockHeight = await getBlockHeight ( proposePhaseDuration , revealPhaseDuration ) ;
5859 for ( let i = 0 ; i < verifiersCount ; i += 1 ) {
5960 awaits . push ( ministroChain . propose (
6061 blindedProposals [ i ] ,
@@ -80,12 +81,12 @@ contract('Chain: testing active/non active verifiers', (accounts) => {
8081
8182 describe ( 'when we are in propose phase' , async ( ) => {
8283 before ( async ( ) => {
83- await mineUntilPropose ( phaseDuration ) ;
84+ await mineUntilPropose ( proposePhaseDuration , revealPhaseDuration ) ;
8485 } ) ;
8586
8687 it ( 'should be possible to propose' , async ( ) => {
8788 const awaits = [ ] ;
88- const blockHeight = await getBlockHeight ( phaseDuration ) ;
89+ const blockHeight = await getBlockHeight ( proposePhaseDuration , revealPhaseDuration ) ;
8990
9091 for ( let i = 0 ; i < verifiersCount ; i += 1 ) {
9192 awaits . push ( ministroChain . propose (
@@ -110,7 +111,7 @@ contract('Chain: testing active/non active verifiers', (accounts) => {
110111
111112 describe ( 'they should be able to finish election and reveal vote' , async ( ) => {
112113 before ( async ( ) => {
113- await mineUntilReveal ( phaseDuration ) ;
114+ await mineUntilReveal ( proposePhaseDuration , revealPhaseDuration ) ;
114115 } ) ;
115116
116117 it ( 'should be possible to reveal' , async ( ) => {
0 commit comments