1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
From: meskio <meskio@torproject.org>
Date: Tue, 1 Jun 2021 13:09:59 +0200
Forwarded: not-needed
Subject: Adapt tests to work with devian version of goconvey
---
client/lib/lib_test.go | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- a/client/lib/lib_test.go
+++ b/client/lib/lib_test.go
@@ -190,7 +190,7 @@
length int
}{
{
- []string{"stun:stun.l.google.com:19302", "stun:stun.ekiga.net"},
+ []string{"stun:stun.l.google.com:19302", "stun:stun.ekiga.net:3478"},
[][]string{[]string{"stun:stun.l.google.com:19302"}, []string{"stun:stun.ekiga.net:3478"}},
2,
},
@@ -212,7 +212,8 @@
So(len(servers), ShouldEqual, test.length)
for _, server := range servers {
- So(test.urls, ShouldContain, server.URLs)
+ So(len(server.URLs), ShouldEqual, 1)
+ So(test.input, ShouldContain, server.URLs[0])
}
}
|