Skip to content

Commit

Permalink
e2e fixed (#1639)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemanja0x committed Jun 22, 2023
1 parent 1f0c9a5 commit c2d4821
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions e2e/pos_poa_switch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ func TestPoAPoSSwitch(t *testing.T) {
}

// Stake balance
// 3 genesis validators will stake but 1 gensis validator won't
numStakedValidators := 3
// 4 genesis validators will stake but 1 gensis validator won't
numStakedValidators := 4
wg = sync.WaitGroup{}

for idx := 0; idx < numStakedValidators; idx++ {
Expand Down Expand Up @@ -143,7 +143,7 @@ func TestPoAPoSSwitch(t *testing.T) {
t.Fatalf("Unable to wait for all nodes to seal blocks, %v", waitErrors)
}

expectedPoSValidators := genesisValidatorAddrs[:3]
expectedPoSValidators := genesisValidatorAddrs[:4]

// Test in PoS
wg = sync.WaitGroup{}
Expand All @@ -159,7 +159,7 @@ func TestPoAPoSSwitch(t *testing.T) {
ctx, cancel := context.WithTimeout(context.Background(), framework.DefaultTimeout)
defer cancel()

// every validator should have only 3 validators in validator set
// every validator should have only 4 validators in validator set
validateSnapshot(ctx, srv, posStartAt, expectedPoSValidators)
}(srv)
}
Expand Down

0 comments on commit c2d4821

Please sign in to comment.