commit fb1c7123e1c3daf1453ff474ed32e25c74d58bfb
Author: David Fifield <[email protected]>
Date: Sat Jun 27 20:43:48 2015 -0700
Fix misnamed struct member.
---
pt_test.go | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/pt_test.go b/pt_test.go
index c0540b5..8470383 100644
--- a/pt_test.go
+++ b/pt_test.go
@@ -138,9 +138,9 @@ func tcpAddrsEqual(a, b *net.TCPAddr) bool {
func TestGetClientTransports(t *testing.T) {
tests := [...]struct {
- ptServerClientTransports string
- star []string
- expected []string
+ ptClientTransports string
+ star []string
+ expected []string
}{
{
"*",
@@ -205,15 +205,15 @@ func TestGetClientTransports(t *testing.T) {
}
for _, test := range tests {
- os.Setenv("TOR_PT_CLIENT_TRANSPORTS",
test.ptServerClientTransports)
+ os.Setenv("TOR_PT_CLIENT_TRANSPORTS", test.ptClientTransports)
output, err := getClientTransports(test.star)
if err != nil {
t.Errorf("TOR_PT_CLIENT_TRANSPORTS=%q unexpectedly
returned an error: %s",
- test.ptServerClientTransports, err)
+ test.ptClientTransports, err)
}
if !stringSetsEqual(output, test.expected) {
t.Errorf("TOR_PT_CLIENT_TRANSPORTS=%q %q â %q
(expected %q)",
- test.ptServerClientTransports, test.star,
output, test.expected)
+ test.ptClientTransports, test.star, output,
test.expected)
}
}
}
_______________________________________________
tor-commits mailing list
[email protected]
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits