Skip to content

Commit

Permalink
pass ctx to NewCluster in tests
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
  • Loading branch information
lanzafame committed Apr 29, 2019
1 parent b1dbc1a commit 4b114df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ipfscluster_test.go
Expand Up @@ -236,7 +236,7 @@ func makePinTracker(t *testing.T, pid peer.ID, mptCfg *maptracker.Config, sptCfg
}

func createCluster(t *testing.T, host host.Host, dht *dht.IpfsDHT, clusterCfg *Config, store ds.Datastore, consensus Consensus, apis []API, ipfs IPFSConnector, tracker PinTracker, mon PeerMonitor, alloc PinAllocator, inf Informer, tracer Tracer) *Cluster {
cl, err := NewCluster(host, dht, clusterCfg, store, consensus, apis, ipfs, tracker, mon, alloc, inf, tracer)
cl, err := NewCluster(context.Background(), host, dht, clusterCfg, store, consensus, apis, ipfs, tracker, mon, alloc, inf, tracer)
checkErr(t, err)
return cl
}
Expand Down

0 comments on commit 4b114df

Please sign in to comment.