From 6b4fcc0090720e1d9dcc2b3666d183e93d9dbdb8 Mon Sep 17 00:00:00 2001 From: whyrusleeping Date: Sat, 30 Nov 2019 11:02:25 -0600 Subject: [PATCH] progressively getting closer to fixing tests --- chain/store/weight.go | 1 - node/node_test.go | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/chain/store/weight.go b/chain/store/weight.go index 72811ebec..901356728 100644 --- a/chain/store/weight.go +++ b/chain/store/weight.go @@ -40,7 +40,6 @@ func (cs *ChainStore) Weight(ctx context.Context, ts *types.TipSet) (types.BigIn log2P = int64(tpow.BitLen() - 1) } else { // Not really expect to be here ... - panic("where are we") return types.EmptyInt, xerrors.Errorf("All power in the net is gone. You network might be disconnected, or the net is dead!") } diff --git a/node/node_test.go b/node/node_test.go index 7c9de9365..b78d1e79c 100644 --- a/node/node_test.go +++ b/node/node_test.go @@ -199,8 +199,7 @@ func builder(t *testing.T, nFull int, storage []int) ([]test.TestNode, []test.Te wa, err := f.WalletDefaultAddress(ctx) require.NoError(t, err) - genMiner, err := address.NewFromString("t0102") - require.NoError(t, err) + genMiner := gmc.MinerAddrs[i] storers[i] = testStorageNode(ctx, t, wa, genMiner, pk, f, mn) }