From 4353143ae44436c47b9dff8bc7c0a9e439bd1001 Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Thu, 13 Jan 2022 13:49:54 -0800 Subject: [PATCH] Assert CInfo is not empty in Test --- tor/torProvider_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tor/torProvider_test.go b/tor/torProvider_test.go index 1630bf4..3c12575 100644 --- a/tor/torProvider_test.go +++ b/tor/torProvider_test.go @@ -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 {