[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [obfs4/master] Fix minor issues pointed out by "go vet".
commit 6ba5b4921feb66eaa40e1fa4056c7fb81e29f157
Author: Yawning Angel <yawning@xxxxxxxxxxxxxx>
Date: Fri Oct 24 22:02:23 2014 +0000
Fix minor issues pointed out by "go vet".
---
transports/obfs4/handshake_ntor_test.go | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/transports/obfs4/handshake_ntor_test.go b/transports/obfs4/handshake_ntor_test.go
index 1903986..b575093 100644
--- a/transports/obfs4/handshake_ntor_test.go
+++ b/transports/obfs4/handshake_ntor_test.go
@@ -83,7 +83,7 @@ func TestHandshakeNtorClient(t *testing.T) {
// Genrate what the server will send to the client.
serverBlob, err := serverHs.generateHandshake()
if err != nil {
- t.Fatal("[%d:0]: serverHandshake.generateHandshake() failed: %s", l, err)
+ t.Fatalf("[%d:0]: serverHandshake.generateHandshake() failed: %s", l, err)
}
// Parse the server handshake message.
@@ -173,7 +173,7 @@ func TestHandshakeNtorServer(t *testing.T) {
// Genrate what the server will send to the client.
serverBlob, err := serverHs.generateHandshake()
if err != nil {
- t.Fatal("[%d:1]: serverHandshake.generateHandshake() failed: %s", l, err)
+ t.Fatalf("[%d:1]: serverHandshake.generateHandshake() failed: %s", l, err)
}
// Parse the server handshake message.
@@ -239,7 +239,7 @@ func TestHandshakeNtorServer(t *testing.T) {
}
serverBlob, err := serverHs.generateHandshake()
if err != nil {
- t.Fatal("serverHandshake.generateHandshake() (forced oversize) failed: %s", err)
+ t.Fatalf("serverHandshake.generateHandshake() (forced oversize) failed: %s", err)
}
_, _, err = clientHs.parseServerHandshake(serverBlob)
if err == nil {
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits