[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [meek/webextension] fmt.



commit 975c534e07f43ffa66833f46857d193f9535be78
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date:   Tue Mar 5 16:20:22 2019 -0700

    fmt.
---
 meek-client-torbrowser/protocol_test.go | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/meek-client-torbrowser/protocol_test.go b/meek-client-torbrowser/protocol_test.go
index 63e48d2..48db95f 100644
--- a/meek-client-torbrowser/protocol_test.go
+++ b/meek-client-torbrowser/protocol_test.go
@@ -9,6 +9,7 @@ import (
 )
 
 const timeout = 50 * time.Millisecond
+
 var errTimedout = errors.New("timed out")
 
 type infiniteReader struct{}
@@ -22,14 +23,14 @@ func (r *infiniteReader) Read(p []byte) (int, error) {
 
 func grepHelperAddrTimeout(r io.Reader) (string, error) {
 	type result struct {
-		s string
+		s   string
 		err error
 	}
 	ch := make(chan result)
 	go func() {
 		s, err := grepHelperAddr(r)
-		ch <- result {
-			s: s,
+		ch <- result{
+			s:   s,
 			err: err,
 		}
 	}()
@@ -69,7 +70,7 @@ func TestGrepHelperAddr(t *testing.T) {
 	// good tests
 	for _, test := range []string{
 		"meek-http-helper: listen " + expectedAddr,
-		"meek-http-helper: listen " + expectedAddr+ "\njunk",
+		"meek-http-helper: listen " + expectedAddr + "\njunk",
 		"junk\nmeek-http-helper: listen " + expectedAddr + "\njunk",
 		"meek-http-helper: listen " + expectedAddr + "\nmeek-http-helper: listen 1.2.3.4:9999\n",
 	} {



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits