From 9c6b6e61fecfbf422c8fb1d84b2dab0240b64af2 Mon Sep 17 00:00:00 2001 From: vyzo Date: Thu, 2 Jul 2020 13:23:26 +0300 Subject: [PATCH] remove duplicate miner addrs collection --- lotus-soup/deals_stress.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lotus-soup/deals_stress.go b/lotus-soup/deals_stress.go index 32cb37c82..3d55818d1 100644 --- a/lotus-soup/deals_stress.go +++ b/lotus-soup/deals_stress.go @@ -28,16 +28,10 @@ func dealStressTest(t *testkit.TestEnvironment) error { } ctx := context.Background() - addrs, err := testkit.CollectMinerAddrs(t, ctx, t.IntParam("miners")) - if err != nil { - return err - } - t.RecordMessage("got %v miner addrs", len(addrs)) - client := cl.FullApi // select a random miner - minerAddr := addrs[rand.Intn(len(addrs))] + minerAddr := cl.MinerAddrs[rand.Intn(len(cl.MinerAddrs))] if err := client.NetConnect(ctx, minerAddr.PeerAddr); err != nil { return err }