From 1c64a3d0a1c07b30557533ba4e08d4f3266daddc Mon Sep 17 00:00:00 2001 From: Sir Darkrengarius Date: Fri, 21 Jun 2019 17:30:51 +0300 Subject: [PATCH] Change self-dial test name, describe this test in `TESTING.md` --- pkg/dmsg/TESTING.md | 7 ++++++- pkg/dmsg/server_test.go | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pkg/dmsg/TESTING.md b/pkg/dmsg/TESTING.md index e4e894cbd..5aac366cc 100644 --- a/pkg/dmsg/TESTING.md +++ b/pkg/dmsg/TESTING.md @@ -47,7 +47,12 @@ Note that even though `messaging-discovery` is also considered to be an entity o **`self_dial_should_work`** -- TODO +- Given: + - clientA is connected to a server + - clientA dials himself +- Then: + - clientA accept connections, transports are being created successfully + - clientA is able to write/read to/from transports without errors ### Fuzz testing diff --git a/pkg/dmsg/server_test.go b/pkg/dmsg/server_test.go index bfd236707..fee908fc5 100644 --- a/pkg/dmsg/server_test.go +++ b/pkg/dmsg/server_test.go @@ -748,7 +748,7 @@ func TestServer_Serve(t *testing.T) { require.NoError(t, err) }) - t.Run("test client's self-dialing", func(t *testing.T) { + t.Run("self_dial_should_work", func(t *testing.T) { // generate keys for the client aPK, aSK := cipher.GenerateKeyPair()