Fix up common/testing confusions
This commit is contained in:
1 parent
dc55448c7d
commit
c76e213f76
2 files changed
+5
-3
No files matched your search
@@ -2,6 +2,7 @@ package nameserver
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/miekg/dns"
|
"github.com/miekg/dns"
|
||||||
|
"github.com/zettio/weave/common"
|
||||||
wt "github.com/zettio/weave/testing"
|
wt "github.com/zettio/weave/testing"
|
||||||
"log"
|
"log"
|
||||||
"net"
|
"net"
|
||||||
@@ -34,7 +35,7 @@ func sendQuery(name string, querytype uint16) error {
|
|||||||
|
|
||||||
func TestServerSimpleQuery(t *testing.T) {
|
func TestServerSimpleQuery(t *testing.T) {
|
||||||
// The ff can be handy for debugging (obvs)
|
// The ff can be handy for debugging (obvs)
|
||||||
wt.InitDefaultLogging(true)
|
common.InitDefaultLogging(true)
|
||||||
|
|
||||||
log.Println("TestServerSimpleQuery starting")
|
log.Println("TestServerSimpleQuery starting")
|
||||||
var zone = new(ZoneDb)
|
var zone = new(ZoneDb)
|
||||||
|
|||||||
@@ -3,7 +3,8 @@ package nameserver
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/miekg/dns"
|
"github.com/miekg/dns"
|
||||||
wt "github.com/zettio/weave/common"
|
"github.com/zettio/weave/common"
|
||||||
|
wt "github.com/zettio/weave/testing"
|
||||||
"net"
|
"net"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
@@ -22,7 +23,7 @@ func TestDNSServer(t *testing.T) {
|
|||||||
dnsAddr := fmt.Sprintf("localhost:%d", port)
|
dnsAddr := fmt.Sprintf("localhost:%d", port)
|
||||||
testCIDR1 := testAddr1 + "/24"
|
testCIDR1 := testAddr1 + "/24"
|
||||||
|
|
||||||
wt.InitDefaultLogging(true)
|
common.InitDefaultLogging(true)
|
||||||
var zone = new(ZoneDb)
|
var zone = new(ZoneDb)
|
||||||
ip, _, _ := net.ParseCIDR(testCIDR1)
|
ip, _, _ := net.ParseCIDR(testCIDR1)
|
||||||
zone.AddRecord(containerID, successTestName, ip)
|
zone.AddRecord(containerID, successTestName, ip)
|
||||||
|
|||||||
Reference in new issue
Block a user