diff options
author | Janoš Guljaš <janos@users.noreply.github.com> | 2018-11-22 03:49:13 +0800 |
---|---|---|
committer | Anton Evangelatov <anton.evangelatov@gmail.com> | 2018-11-22 03:49:13 +0800 |
commit | 070caec4bd72b1a958ece5f2b8fcc2bb92d44796 (patch) | |
tree | 2b3f9369daaea984c15ee53f31af12cc02989db4 /swarm/network/stream/common_test.go | |
parent | 4c181e4fb98bb88503cccd6147026b6c2b7b56f6 (diff) | |
download | go-tangerine-070caec4bd72b1a958ece5f2b8fcc2bb92d44796.tar go-tangerine-070caec4bd72b1a958ece5f2b8fcc2bb92d44796.tar.gz go-tangerine-070caec4bd72b1a958ece5f2b8fcc2bb92d44796.tar.bz2 go-tangerine-070caec4bd72b1a958ece5f2b8fcc2bb92d44796.tar.lz go-tangerine-070caec4bd72b1a958ece5f2b8fcc2bb92d44796.tar.xz go-tangerine-070caec4bd72b1a958ece5f2b8fcc2bb92d44796.tar.zst go-tangerine-070caec4bd72b1a958ece5f2b8fcc2bb92d44796.zip |
swarm/network/stream: use swarm/mock/mem as mock global store (#18157)
Diffstat (limited to 'swarm/network/stream/common_test.go')
-rw-r--r-- | swarm/network/stream/common_test.go | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/swarm/network/stream/common_test.go b/swarm/network/stream/common_test.go index c5f1fa176..e0a7f7e12 100644 --- a/swarm/network/stream/common_test.go +++ b/swarm/network/stream/common_test.go @@ -38,7 +38,6 @@ import ( "github.com/ethereum/go-ethereum/swarm/pot" "github.com/ethereum/go-ethereum/swarm/state" "github.com/ethereum/go-ethereum/swarm/storage" - mockdb "github.com/ethereum/go-ethereum/swarm/storage/mock/db" "github.com/ethereum/go-ethereum/swarm/testutil" colorable "github.com/mattn/go-colorable" ) @@ -69,21 +68,6 @@ func init() { log.Root().SetHandler(log.LvlFilterHandler(log.Lvl(*loglevel), log.StreamHandler(colorable.NewColorableStderr(), log.TerminalFormat(true)))) } -func createGlobalStore() (string, *mockdb.GlobalStore, error) { - var globalStore *mockdb.GlobalStore - globalStoreDir, err := ioutil.TempDir("", "global.store") - if err != nil { - log.Error("Error initiating global store temp directory!", "err", err) - return "", nil, err - } - globalStore, err = mockdb.NewGlobalStore(globalStoreDir) - if err != nil { - log.Error("Error initiating global store!", "err", err) - return "", nil, err - } - return globalStoreDir, globalStore, nil -} - func newStreamerTester(t *testing.T, registryOptions *RegistryOptions) (*p2ptest.ProtocolTester, *Registry, *storage.LocalStore, func(), error) { // setup addr := network.RandomAddr() // tested peers peer address |