mesh-mail: the refused-sign-in acceptance test's wait excluded queued too, so it returned done on the very first look before the sender ever claimed anything (issue 1198)
This commit is contained in:
@@ -277,7 +277,12 @@ func TestMailSenderAcceptanceARefusedSignInFailsAfterItsAttemptsAndNothingIsRece
|
||||
if err != nil || !ok || kept.Decided == nil {
|
||||
return false, "not yet decided"
|
||||
}
|
||||
return kept.Decided.Outcome != "retrying" && kept.Decided.Outcome != "sending", kept.Decided.Outcome
|
||||
// "queued" is the send's own starting state (queueAnApprovedSend's own write, before the sender
|
||||
// ever claims it): without excluding it here too, this check reads done on the very first look,
|
||||
// long before the sender connects or claims anything at all (novox/hq review: build-1792400882114092431,
|
||||
// 1198/AC4).
|
||||
o := kept.Decided.Outcome
|
||||
return o != "queued" && o != "retrying" && o != "sending", o
|
||||
})
|
||||
cancel()
|
||||
<-done
|
||||
|
||||
Reference in New Issue
Block a user