From a7ba47141a4fc296c8fbe4caabaf4fd56161ce2d Mon Sep 17 00:00:00 2001 From: rairyx Date: Sat, 31 Aug 2019 11:59:33 -0700 Subject: [PATCH] Update testing script --- pubsub/raven.go | 4 +--- pubsub/test/terminator/config | 10 +++++----- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/pubsub/raven.go b/pubsub/raven.go index 75a4541..6c85098 100644 --- a/pubsub/raven.go +++ b/pubsub/raven.go @@ -15,7 +15,7 @@ import ( peerstore "github.com/libp2p/go-libp2p-peerstore" libp2pdht "github.com/libp2p/go-libp2p-kad-dht" "github.com/libp2p/go-libp2p-crypto" - logging "github.com/whyrusleeping/go-logging" + //logging "github.com/whyrusleeping/go-logging" gossipsub "github.com/libp2p/go-libp2p-pubsub" ma "github.com/multiformats/go-multiaddr" ) @@ -52,8 +52,6 @@ func parseArgs() (bool, string, int) { func main() { - log.SetAllLoggers(logging.DEBUG) - log.SetLogLevel("raven", "debug") ctx := context.Background() bBootstrap, privKeyFilePath, port := parseArgs() diff --git a/pubsub/test/terminator/config b/pubsub/test/terminator/config index ab42fc4..b9f6777 100644 --- a/pubsub/test/terminator/config +++ b/pubsub/test/terminator/config @@ -20,7 +20,7 @@ parent = "" position = 71:55 size = 734, 451 - title = PubSub Demo (Go, JS, Rust) + title = Raven Demo (Go) type = Window [[[child1]]] order = 0 @@ -42,28 +42,28 @@ type = HPaned [[[terminal3]]] profile = default - command = 'pushd .. ; ./pubsub-interop -b ../util/private_key.bin.bootstrapper.Wa; popd ; bash' + command = 'pushd .. ; IPFS_LOGGING=debug ./raven ../util/private_key.bin.bootstrapper.Wa --bootstrapper; popd ; bash' order = 0 parent = child2 type = Terminal uuid = e05bb5f2-7bce-41c4-a19b-26be884919df [[[terminal4]]] profile = default - command = 'sleep 1 ; pushd .. ; ./pubsub-interop ../util/private_key.bin.peer.Sk; popd ; bash' + command = 'sleep 1 ; pushd .. ; ./raven ../util/private_key.bin.peer.Sk; popd ; bash' order = 1 parent = child2 type = Terminal uuid = a551b167-2da7-4994-ac12-5063852055da [[[terminal6]]] profile = default - command = 'sleep 1 ; pushd ../js ; node index.js /ip4/127.0.0.1/tcp/5555/ipfs/QmehVYruznbyDZuHBV4vEHESpDevMoAovET6aJ9oRuEzWa; popd ; bash' + command = 'sleep 1 ; pushd .. ; ./raven ../util/private_key.bin.peer.w6 6001; popd ; bash' order = 0 parent = child5 type = Terminal uuid = 8358280f-49da-4a74-bb27-7a3c7e472fe9 [[[terminal7]]] profile = default - command = 'sleep 1 ; pushd ../rust ; cargo run; popd ; bash' + command = 'sleep 1 ; pushd .. ; ./raven ../util/private_key.bin.peer.d9 6002; popd ; bash' order = 1 parent = child5 type = Terminal