mirror of
https://github.com/miekg/dns.git
synced 2025-08-11 03:56:58 +02:00
Use :0 for loopback testing. This is more portable between testing environments. Add testRR that calls NewRR and throws error away - apply it everywhere where needed. It seems only Go 1.9 can deal with :0 being used. Disable 1.8 in travis.
8 lines
136 B
Go
8 lines
136 B
Go
package dns
|
|
|
|
// testRR returns the RR from string s. The error is thrown away.
|
|
func testRR(s string) RR {
|
|
r, _ := NewRR(s)
|
|
return r
|
|
}
|