From dacb67a563679b1e9d112afc60c7aeba3d4e77c9 Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Tue, 2 Jan 2024 12:54:44 -0800 Subject: [PATCH] Fixup the initial startup of contactRetry_test.go --- app/plugins/contactRetry_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/plugins/contactRetry_test.go b/app/plugins/contactRetry_test.go index 407f08a..ab79c13 100644 --- a/app/plugins/contactRetry_test.go +++ b/app/plugins/contactRetry_test.go @@ -46,9 +46,11 @@ func TestContactRetryQueue(t *testing.T) { } } + // We should very quickly become connecting... + time.Sleep(time.Second) pinf, _ := cr.connections.Load(testOnion) - if pinf.(*contact).queued == false { - t.Fatalf("test connection should be queued, actually: %v", pinf.(*contact).queued) + if pinf.(*contact).state != 1 { + t.Fatalf("test connection should be in connecting after update, actually: %v", pinf.(*contact).state) } // Asset that "test" is authenticated