Fix up common/testing confusions

This commit is contained in:
Michael Bridgen committed 2015-01-12 16:33:51 +00:00
1 parent dc55448c7d
commit c76e213f76
2 files changed
+5 -3

No files matched your search

+2 -1
View File
@@ -2,6 +2,7 @@ package nameserver
import (
"github.com/miekg/dns"
"github.com/zettio/weave/common"
wt "github.com/zettio/weave/testing"
"log"
"net"
@@ -34,7 +35,7 @@ func sendQuery(name string, querytype uint16) error {
func TestServerSimpleQuery(t *testing.T) {
// The ff can be handy for debugging (obvs)
wt.InitDefaultLogging(true)
common.InitDefaultLogging(true)
log.Println("TestServerSimpleQuery starting")
var zone = new(ZoneDb)
+3 -2
View File
@@ -3,7 +3,8 @@ package nameserver
import (
"fmt"
"github.com/miekg/dns"
wt "github.com/zettio/weave/common"
"github.com/zettio/weave/common"
wt "github.com/zettio/weave/testing"
"net"
"testing"
"time"
@@ -22,7 +23,7 @@ func TestDNSServer(t *testing.T) {
dnsAddr := fmt.Sprintf("localhost:%d", port)
testCIDR1 := testAddr1 + "/24"
wt.InitDefaultLogging(true)
common.InitDefaultLogging(true)
var zone = new(ZoneDb)
ip, _, _ := net.ParseCIDR(testCIDR1)
zone.AddRecord(containerID, successTestName, ip)