Assert CInfo is not empty in Test
This commit is contained in:
parent
0c745e7691
commit
4353143ae4
|
@ -52,10 +52,9 @@ func TestTorProvider(t *testing.T) {
|
||||||
t.Fatalf("could not find info for OP server %v", err)
|
t.Fatalf("could not find info for OP server %v", err)
|
||||||
}
|
}
|
||||||
cinfo, exists := info["circuit"]
|
cinfo, exists := info["circuit"]
|
||||||
if !exists {
|
if !exists || len(cinfo) == 0 {
|
||||||
t.Fatalf("could not find circuit info for OP server %v", err)
|
t.Fatalf("could not find circuit info for OP server %v", err)
|
||||||
}
|
}
|
||||||
t.Logf("Found Cicurit Info %v", cinfo)
|
|
||||||
|
|
||||||
_, err = acn.GetInfo("not_a_real_onion")
|
_, err = acn.GetInfo("not_a_real_onion")
|
||||||
if err == nil {
|
if err == nil {
|
||||||
|
|
Loading…
Reference in New Issue