Fix Contact Retry Failure to Restart #541

Merged
sarah merged 17 commits from post-stable-fixes into master 2024-01-02 23:18:00 +00:00
1 changed files with 4 additions and 2 deletions
Showing only changes of commit dacb67a563 - Show all commits

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