mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
fix PR build
This commit is contained in:
parent
65f1e816c5
commit
824d952ac7
3 changed files with 4 additions and 4 deletions
|
|
@ -278,7 +278,7 @@ func runRetrievalTest(chunkCount int, nodeCount int) error {
|
|||
}
|
||||
|
||||
//this is the node selected for upload
|
||||
node := sim.RandomUpNode()
|
||||
node := sim.Net.GetRandomUpNode()
|
||||
item, ok := sim.NodeItem(node.ID(), bucketKeyStore)
|
||||
if !ok {
|
||||
return fmt.Errorf("No localstore")
|
||||
|
|
|
|||
|
|
@ -248,7 +248,7 @@ func runSim(conf *synctestConfig, ctx context.Context, sim *simulation.Simulatio
|
|||
|
||||
//get the node at that index
|
||||
//this is the node selected for upload
|
||||
node := sim.Net.RandomUpNode()
|
||||
node := sim.Net.GetRandomUpNode()
|
||||
item, ok := sim.NodeItem(node.ID(), bucketKeyStore)
|
||||
if !ok {
|
||||
return fmt.Errorf("No localstore")
|
||||
|
|
@ -453,7 +453,7 @@ func testSyncingViaDirectSubscribe(t *testing.T, chunkCount int, nodeCount int)
|
|||
}
|
||||
}
|
||||
//select a random node for upload
|
||||
node := sim.Net.RandomUpNode()
|
||||
node := sim.Net.GetRandomUpNode()
|
||||
item, ok := sim.NodeItem(node.ID(), bucketKeyStore)
|
||||
if !ok {
|
||||
return fmt.Errorf("No localstore")
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ func TestNonExistingHashesWithServer(t *testing.T) {
|
|||
|
||||
result := sim.Run(ctx, func(ctx context.Context, sim *simulation.Simulation) error {
|
||||
//check on the node's FileStore (netstore)
|
||||
id := sim.RandomUpNode().ID()
|
||||
id := sim.Net.GetRandomUpNode().ID()
|
||||
item, ok := sim.NodeItem(id, bucketKeyFileStore)
|
||||
if !ok {
|
||||
t.Fatalf("No filestore")
|
||||
|
|
|
|||
Loading…
Reference in a new issue