Assert CInfo is not empty in Test
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
Sarah Jamie Lewis 2022-01-13 13:49:54 -08:00
parent 0c745e7691
commit 4353143ae4
1 changed files with 1 additions and 2 deletions

View File

@ -52,10 +52,9 @@ func TestTorProvider(t *testing.T) {
t.Fatalf("could not find info for OP server %v", err)
}
cinfo, exists := info["circuit"]
if !exists {
if !exists || len(cinfo) == 0 {
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")
if err == nil {