Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
e2e fix
Browse files Browse the repository at this point in the history
  • Loading branch information
goran-ethernal committed Oct 27, 2023
1 parent 9b0cbc0 commit 2ebc4d3
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 4 deletions.
13 changes: 11 additions & 2 deletions e2e-polybft/e2e/bridge_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ func TestE2E_Bridge_Transfers(t *testing.T) {
}

cluster := framework.NewTestCluster(t, 5,
framework.WithTestRewardToken(),
framework.WithNumBlockConfirmations(numBlockConfirmations),
framework.WithEpochSize(epochSize))
defer cluster.Stop()
Expand Down Expand Up @@ -1152,7 +1153,7 @@ func TestE2E_Bridge_ChildChainMintableTokensTransfer(t *testing.T) {

func TestE2E_CheckpointSubmission(t *testing.T) {
// spin up a cluster with epoch size set to 5 blocks
cluster := framework.NewTestCluster(t, 5, framework.WithEpochSize(5))
cluster := framework.NewTestCluster(t, 5, framework.WithEpochSize(5), framework.WithTestRewardToken())
defer cluster.Stop()

// initialize tx relayer used to query CheckpointManager smart contract
Expand Down Expand Up @@ -1206,9 +1207,15 @@ func TestE2E_Bridge_ChangeVotingPower(t *testing.T) {
epochSize = 5
)

minter, err := wallet.GenerateKey()
require.NoError(t, err)

cluster := framework.NewTestCluster(t, 5,
framework.WithEpochSize(epochSize),
framework.WithEpochReward(1000000))
framework.WithEpochReward(1000000),
framework.WithNativeTokenConfig(fmt.Sprintf(nativeTokenMintableTestCfg, minter.Address())),
framework.WithPremine(types.Address(minter.Address())),
)
defer cluster.Stop()

// load polybft config
Expand Down Expand Up @@ -1335,6 +1342,7 @@ func TestE2E_Bridge_Transfers_AccessLists(t *testing.T) {
cluster := framework.NewTestCluster(t, 5,
framework.WithNumBlockConfirmations(0),
framework.WithEpochSize(epochSize),
framework.WithTestRewardToken(),
framework.WithBridgeAllowListAdmin(adminAddr),
framework.WithBridgeBlockListAdmin(adminAddr),
framework.WithSecretsCallback(func(a []types.Address, tcc *framework.TestClusterConfig) {
Expand Down Expand Up @@ -1546,6 +1554,7 @@ func TestE2E_Bridge_Transfers_WithRootTrackerPollInterval(t *testing.T) {
framework.WithEpochSize(epochSize),
framework.WithNumBlockConfirmations(numBlockConfirmations),
framework.WithRootTrackerPollInterval(rootPollInterval),
framework.WithTestRewardToken(),
)
defer cluster.Stop()

Expand Down
1 change: 1 addition & 0 deletions e2e-polybft/e2e/burn_contract_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ func TestE2E_BurnContract_Deployed(t *testing.T) {
destinationAddr := types.Address(destinationKey.Address())

cluster := framework.NewTestCluster(t, 5,
framework.WithTestRewardToken(),
framework.WithBurnContract(&polybft.BurnContractInfo{
Address: contractAddr,
DestinationAddress: destinationAddr,
Expand Down
9 changes: 7 additions & 2 deletions e2e-polybft/e2e/consensus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ func TestE2E_Consensus_Basic_WithNonValidators(t *testing.T) {
const epochSize = 4

cluster := framework.NewTestCluster(t, 5,
framework.WithEpochSize(epochSize), framework.WithNonValidators(2))
framework.WithEpochSize(epochSize),
framework.WithNonValidators(2),
framework.WithTestRewardToken(),
)
defer cluster.Stop()

cluster.WaitForReady(t)
Expand Down Expand Up @@ -100,7 +103,9 @@ func TestE2E_Consensus_BulkDrop(t *testing.T) {

cluster := framework.NewTestCluster(t, clusterSize,
framework.WithEpochSize(epochSize),
framework.WithBlockTime(time.Second))
framework.WithBlockTime(time.Second),
framework.WithTestRewardToken(),
)
defer cluster.Stop()

// wait for cluster to start
Expand Down
1 change: 1 addition & 0 deletions e2e-polybft/e2e/migration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ func TestE2E_Migration(t *testing.T) {
cluster := frameworkpolybft.NewTestCluster(t, 7,
frameworkpolybft.WithNonValidators(2),
frameworkpolybft.WithValidatorSnapshot(5),
frameworkpolybft.WithTestRewardToken(),
frameworkpolybft.WithGenesisState(tmpDir, types.Hash(stateRoot)),
)
defer cluster.Stop()
Expand Down
1 change: 1 addition & 0 deletions e2e-polybft/e2e/network_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ func TestE2E_NetworkDiscoveryProtocol(t *testing.T) {

// create cluster
cluster := framework.NewTestCluster(t, validatorCount,
framework.WithTestRewardToken(),
framework.WithNonValidators(nonValidatorCount),
framework.WithBootnodeCount(1))
defer cluster.Stop()
Expand Down

0 comments on commit 2ebc4d3

Please sign in to comment.