diff options
Diffstat (limited to 'http')
-rw-r--r-- | http/http_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/http/http_test.go b/http/http_test.go index 3e257f3..61ea70a 100644 --- a/http/http_test.go +++ b/http/http_test.go @@ -42,8 +42,8 @@ func TestRequests(t *testing.T) { logger.Record(net.IPv4(127, 0, 0, 42), 1, "example.com.", "192.0.2.100") logger.Record(net.IPv4(127, 0, 0, 254), 28, "example.com.", "2001:db8::1") - var logResponse = "[{\"time\":\"2006-01-02T15:04:05Z\",\"remote_addr\":\"127.0.0.42\",\"type\":\"A\",\"question\":\"example.com.\",\"answer\":\"192.0.2.100\"}," + - "{\"time\":\"2006-01-02T15:04:05Z\",\"remote_addr\":\"127.0.0.254\",\"type\":\"AAAA\",\"question\":\"example.com.\",\"answer\":\"2001:db8::1\"}]" + var logResponse = "[{\"time\":\"2006-01-02T15:04:05Z\",\"remote_addr\":\"127.0.0.254\",\"type\":\"AAAA\",\"question\":\"example.com.\",\"answer\":\"2001:db8::1\"}," + + "{\"time\":\"2006-01-02T15:04:05Z\",\"remote_addr\":\"127.0.0.42\",\"type\":\"A\",\"question\":\"example.com.\",\"answer\":\"192.0.2.100\"}]" var tests = []struct { method string |