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