Fixup the initial startup of contactRetry_test.go
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
Sarah Jamie Lewis 2024-01-02 12:54:44 -08:00
parent 6034b8f167
commit dacb67a563
1 changed files with 4 additions and 2 deletions

View File

@ -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