Skip to content

Commit

Permalink
de-flake
Browse files Browse the repository at this point in the history
  • Loading branch information
tudor-malene committed Feb 14, 2024
1 parent 2016e42 commit cc98174
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion integration/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ const (
StartPortSimulationInMem = 22000
StartPortSimulationFullNetwork = 26000
StartPortSmartContractTests = 30000
StartPortContractDeployerTest = 34000
StartPortContractDeployerTest1 = 34000
StartPortContractDeployerTest2 = 35000
StartPortWalletExtensionUnitTest = 38000
StartPortFaucetUnitTest = 42000
StartPortFaucetHTTPUnitTest = 48000
Expand Down
4 changes: 2 additions & 2 deletions integration/contractdeployer/contract_deployer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func init() { //nolint:gochecknoinits
}

func TestCanDeployLayer2ERC20Contract(t *testing.T) {
startPort := integration.StartPortContractDeployerTest
startPort := integration.StartPortContractDeployerTest1
hostWSPort := startPort + integration.DefaultHostRPCWSOffset
createObscuroNetwork(t, startPort)
// This sleep is required to ensure the initial rollup exists, and thus contract deployer can check its balance.
Expand Down Expand Up @@ -81,7 +81,7 @@ func TestCanDeployLayer2ERC20Contract(t *testing.T) {
}

func TestFaucetSendsFundsOnlyIfNeeded(t *testing.T) {
startPort := integration.StartPortContractDeployerTest
startPort := integration.StartPortContractDeployerTest2
hostWSPort := startPort + integration.DefaultHostRPCWSOffset
createObscuroNetwork(t, startPort)

Expand Down
2 changes: 2 additions & 0 deletions integration/eth2network/eth2_network.go
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,8 @@ func (n *Impl) Stop() error {
fmt.Printf("unable to kill prysm validator node - %s\n", err.Error())
}
}
// wait a second for the kill signal
time.Sleep(time.Second)
return nil
}

Expand Down

0 comments on commit cc98174

Please sign in to comment.