dummy delay for everyone but first miner
This commit is contained in:
parent
a53fd82379
commit
d0599ff1e3
@ -75,7 +75,7 @@ func dealsE2E(t *testkit.TestEnvironment) error {
|
|||||||
// give some time to the miner, otherwise, we get errors like:
|
// give some time to the miner, otherwise, we get errors like:
|
||||||
// deal errored deal failed: (State=26) error calling node: publishing deal: GasEstimateMessageGas
|
// deal errored deal failed: (State=26) error calling node: publishing deal: GasEstimateMessageGas
|
||||||
// error: estimating gas used: message execution failed: exit 19, reason: failed to lock balance: failed to lock client funds: not enough balance to lock for addr t0102: escrow balance 0 < locked 0 + required 640297000 (RetCode=19)
|
// error: estimating gas used: message execution failed: exit 19, reason: failed to lock balance: failed to lock client funds: not enough balance to lock for addr t0102: escrow balance 0 < locked 0 + required 640297000 (RetCode=19)
|
||||||
time.Sleep(40 * time.Second)
|
time.Sleep(50 * time.Second)
|
||||||
|
|
||||||
// generate 1600 bytes of random data
|
// generate 1600 bytes of random data
|
||||||
data := make([]byte, 1600)
|
data := make([]byte, 1600)
|
||||||
|
@ -125,6 +125,11 @@ func PrepareMiner(t *TestEnvironment) (*LotusMiner, error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if t.GroupSeq != 1 {
|
||||||
|
fmt.Println("sleeping for 11sec.")
|
||||||
|
time.Sleep(11 * time.Second)
|
||||||
|
}
|
||||||
|
|
||||||
// prepare the repo
|
// prepare the repo
|
||||||
minerRepoDir, err := ioutil.TempDir("", "miner-repo-dir")
|
minerRepoDir, err := ioutil.TempDir("", "miner-repo-dir")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user