progressively getting closer to fixing tests

This commit is contained in:
whyrusleeping 2019-11-30 11:02:25 -06:00
parent 82c7818b84
commit 6b4fcc0090
2 changed files with 1 additions and 3 deletions

View File

@ -40,7 +40,6 @@ func (cs *ChainStore) Weight(ctx context.Context, ts *types.TipSet) (types.BigIn
log2P = int64(tpow.BitLen() - 1) log2P = int64(tpow.BitLen() - 1)
} else { } else {
// Not really expect to be here ... // 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!") return types.EmptyInt, xerrors.Errorf("All power in the net is gone. You network might be disconnected, or the net is dead!")
} }

View File

@ -199,8 +199,7 @@ func builder(t *testing.T, nFull int, storage []int) ([]test.TestNode, []test.Te
wa, err := f.WalletDefaultAddress(ctx) wa, err := f.WalletDefaultAddress(ctx)
require.NoError(t, err) require.NoError(t, err)
genMiner, err := address.NewFromString("t0102") genMiner := gmc.MinerAddrs[i]
require.NoError(t, err)
storers[i] = testStorageNode(ctx, t, wa, genMiner, pk, f, mn) storers[i] = testStorageNode(ctx, t, wa, genMiner, pk, f, mn)
} }