peer relate alice and bob

This commit is contained in:
Dan Ballard 2018-05-02 15:56:55 -07:00
parent 36d0e3786c
commit ec8417b8ec
1 changed files with 4 additions and 0 deletions

View File

@ -66,6 +66,10 @@ func TestCwtchPeerIntegration(t *testing.T) {
fmt.Println("Bob joining group...")
bob.JoinServer(server_addr)
// Associate and peer alice & bob
alice.Profile.AddContact(bob.Profile.Onion, bob.Profile.PublicProfile)
bob.Profile.AddContact(alice.Profile.Onion, alice.Profile.PublicProfile)
fmt.Println("Alice> ", aliceLines[0])
alice.SendMessageToGroup(groupId, aliceLines[0])
time.Sleep(time.Second * 2)