Put timeout on nameserver test to try and expose #1203

This commit is contained in:
Tom Wilkie committed 2015-07-21 09:25:04 +00:00
1 parent dba116bae1
commit 2980586e76
1 file changed
+7
+7
View File
@@ -13,6 +13,7 @@ import (
"github.com/weaveworks/weave/net/address"
"github.com/weaveworks/weave/router"
wt "github.com/weaveworks/weave/testing"
"github.com/weaveworks/weave/testing/gossip"
)
@@ -71,6 +72,12 @@ func (m mapping) Addrs() []address.Address {
}
func TestNameservers(t *testing.T) {
wt.RunWithTimeout(t, time.Minute, func() {
testNameservers(t)
})
}
func testNameservers(t *testing.T) {
//common.SetLogLevel("debug")
lookupTimeout := 10 // ms