From d68ba9abfc7d4871097a6fa9374503e226363941 Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Wed, 30 May 2018 16:21:41 -0700 Subject: [PATCH] remove integ test from unit tests run; peers don't need to AddContact themselves; remove commented out and non-functional peer accept code --- testing/cwtch_peer_server_intergration_test.go | 10 ---------- testing/tests.sh | 1 - 2 files changed, 11 deletions(-) diff --git a/testing/cwtch_peer_server_intergration_test.go b/testing/cwtch_peer_server_intergration_test.go index 737bf6f..602b8e0 100644 --- a/testing/cwtch_peer_server_intergration_test.go +++ b/testing/cwtch_peer_server_intergration_test.go @@ -94,13 +94,11 @@ func TestCwtchPeerIntegration(t *testing.T) { fmt.Println("Creating Alice...") alice := peer.NewCwtchPeer("Alice") - alice.Profile.AddContact(alice.Profile.Onion, &alice.Profile.PublicProfile) go alice.Listen() fmt.Println("Alice created:", alice.Profile.Onion) fmt.Println("Creating Bob...") bob := peer.NewCwtchPeer("Bob") - bob.Profile.AddContact(bob.Profile.Onion, &bob.Profile.PublicProfile) go bob.Listen() fmt.Println("Bob created:", bob.Profile.Onion) @@ -122,14 +120,6 @@ func TestCwtchPeerIntegration(t *testing.T) { time.Sleep(time.Second * 15) - // TODO: bob auto accepted!? - /*fmt.Println("Bob checking for new peers and accepting...") - bpeers := bob.GetPeers() - for bpeer, bpeerState := range bpeers { - fmt.Printf(" %v: %v\n", bpeer, bpeerState) - } - time.Sleep(time.Second * 5)*/ - fmt.Println("Alice inviting Bob to group...") err = alice.InviteOnionToGroup(bob.Profile.Onion, groupId) if err != nil { diff --git a/testing/tests.sh b/testing/tests.sh index 88d4e41..25e238f 100755 --- a/testing/tests.sh +++ b/testing/tests.sh @@ -15,7 +15,6 @@ go test ${1} -coverprofile=server.fetch.cover.out -v ./server/fetch go test ${1} -coverprofile=server.listen.cover.out -v ./server/listen go test ${1} -coverprofile=server.send.cover.out -v ./server/send go test ${1} -coverprofile=server.cover.out -v ./server -go test ${1} -coverprofile=testing.cover.out -v ./testing echo "mode: set" > coverage.out && cat *.cover.out | grep -v mode: | sort -r | \ awk '{if($1 != last) {print $0;last=$1}}' >> coverage.out rm -rf *.cover.out