Skip to content

Commit

Permalink
Cleanup gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ryarnyah committed Sep 3, 2018
1 parent fa341b4 commit 0f2868a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ func TestLeadAuthority(t *testing.T) {
ServerProtocol: "udp",
CacheTTL: 0,
Authorities: []authority{
authority{
{
DnsServer: "8.8.4.4",
DnsPort: 53,
DnsProtocol: "udp",
Timeout: 2,
},
authority{
{
DnsServer: "8.8.8.8",
DnsPort: 53,
DnsProtocol: "udp",
Expand Down Expand Up @@ -51,7 +51,7 @@ func TestLeadAuthority(t *testing.T) {
}

config.Authorities = []authority{
authority{
{
DnsServer: "8.8.8.8",
DnsPort: 53,
DnsProtocol: "udp",
Expand Down Expand Up @@ -115,7 +115,7 @@ func TestResolveDnsQuery(t *testing.T) {

msg = &dns.Msg{
Question: []dns.Question{
dns.Question{
{
Name: "toto.com.",
Qtype: dns.TypeA,
Qclass: dns.ClassINET,
Expand All @@ -142,7 +142,7 @@ func TestResolveDnsQuery(t *testing.T) {
// Test fail
msg = &dns.Msg{
Question: []dns.Question{
dns.Question{
{
Name: "google.com.",
Qtype: dns.TypeA,
Qclass: dns.ClassINET,
Expand Down Expand Up @@ -175,7 +175,7 @@ func TestServeDNS(t *testing.T) {
ServerProtocol: "udp",
CacheTTL: 0,
Authorities: []authority{
authority{
{
DnsServer: "127.0.0.1",
DnsPort: s.PacketConn.LocalAddr().(*net.UDPAddr).Port,
DnsProtocol: "udp",
Expand All @@ -202,7 +202,7 @@ func TestServeDNS(t *testing.T) {

msg := &dns.Msg{
Question: []dns.Question{
dns.Question{
{
Name: "toto.com.",
Qtype: dns.TypeA,
Qclass: dns.ClassINET,
Expand Down

0 comments on commit 0f2868a

Please sign in to comment.