From 6b20d6a44bed660e9301795c8e500893900a4839 Mon Sep 17 00:00:00 2001 From: Fabio Barone Date: Mon, 4 Mar 2019 11:48:49 -0500 Subject: [PATCH] swarm/network/stream: longer SyncUpdateDelay for longrunning tests --- swarm/network/stream/snapshot_retrieval_test.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/swarm/network/stream/snapshot_retrieval_test.go b/swarm/network/stream/snapshot_retrieval_test.go index 5e24a39f57..430065e501 100644 --- a/swarm/network/stream/snapshot_retrieval_test.go +++ b/swarm/network/stream/snapshot_retrieval_test.go @@ -113,10 +113,15 @@ var retrievalSimServiceMap = map[string]simulation.ServiceFunc{ return nil, nil, err } + syncUpdateDelay := 1 * time.Second + if *longrunning { + syncUpdateDelay = 15 * time.Second + } + r := NewRegistry(addr.ID(), delivery, netStore, state.NewInmemoryStore(), &RegistryOptions{ Retrieval: RetrievalEnabled, Syncing: SyncingAutoSubscribe, - SyncUpdateDelay: 3 * time.Second, + SyncUpdateDelay: syncUpdateDelay, }, nil) cleanup = func() {