From 51a1542cc6d4dd521e5b93770f6cd40327cf5e00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Kripalani?= Date: Wed, 23 Jun 2021 20:09:40 +0100 Subject: [PATCH] ccupgrade test fix. --- itests/ccupgrade_test.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/itests/ccupgrade_test.go b/itests/ccupgrade_test.go index 26606e7fec7..3ba580f7cb1 100644 --- a/itests/ccupgrade_test.go +++ b/itests/ccupgrade_test.go @@ -36,16 +36,21 @@ func runTestCCUpgrade(t *testing.T, upgradeHeight abi.ChainEpoch) { ctx := context.Background() blockTime := 5 * time.Millisecond + // add an actor holding lots of FIL as a way to stabilise the dealmaking CE + // parameters that take circulating supply into account. + money := big.Mul(big.NewInt(1_000_000_000), big.NewInt(int64(build.FilecoinPrecision))) bank, err := wallet.GenerateKey(types.KTSecp256k1) require.NoError(t, err) - money := big.Mul(big.NewInt(100_000_000), big.NewInt(int64(build.FilecoinPrecision))) client, miner, ens := kit.EnsembleMinimal(t, kit.MockProofs(), kit.Account(bank, money), kit.ConstructorOpts(kit.LatestActorsAt(upgradeHeight)), ) ens.InterconnectAll().BeginMining(blockTime) + time.Sleep(30 * time.Second) + fmt.Println(client.StateNetworkVersion(ctx, types.EmptyTSK)) + maddr, err := miner.ActorAddress(ctx) if err != nil { t.Fatal(err)