forked from cwtch.im/cwtch
Remove Flakey Queued Check in Contact Retry Plugin Test
This commit is contained in:
parent
1c7003fb96
commit
41b3e20aff
|
@ -36,15 +36,12 @@ func TestContactRetryQueue(t *testing.T) {
|
|||
// progress...
|
||||
setup := false
|
||||
for !setup {
|
||||
if pinf, exists := cr.connections.Load(testOnion); exists {
|
||||
if pinf.(*contact).queued {
|
||||
if _, exists := cr.connections.Load(testOnion); exists {
|
||||
if _, exists := cr.authorizedPeers.Load(testOnion); exists {
|
||||
t.Logf("authorized")
|
||||
setup = true
|
||||
}
|
||||
}
|
||||
}
|
||||
time.Sleep(time.Second)
|
||||
}
|
||||
|
||||
// We should very quickly become connecting...
|
||||
|
|
Loading…
Reference in New Issue