Skip to content

Commit f06de41

Browse files
committed
lint: dot_test.go
1 parent 5d9ade4 commit f06de41

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

intra/dns53/dot_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,10 @@ func TestProtonReaches(t *testing.T) {
382382
_, err = pxr.Amnezia()
383383
ko(t, err)
384384

385+
if proton == nil {
386+
t.Fatal("nil main proton proxy")
387+
}
388+
385389
// _, err = proton.Fork("UK")
386390
// ko(t, err)
387391
// _, err = proton.Fork("CH")
@@ -425,7 +429,7 @@ func TestProtonReaches(t *testing.T) {
425429
}
426430

427431
ans := xdns.AsMsg(r4)
428-
if xdns.Len(ans) == 0 && xdns.Len(ans) == 0 {
432+
if xdns.Len(ans) <= 0 {
429433
t.Fatal("no ans")
430434
}
431435
ilog.D("dns", xdns.Ans(ans))

0 commit comments

Comments
 (0)