mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
fix tests
This commit is contained in:
parent
f42dfc5351
commit
f35fcde87f
@ -227,7 +227,7 @@ export class Mailbox {
|
||||
this.waitForMessagesWithSubject = async (subject: string) => {
|
||||
const maxRetries = 20;
|
||||
for (let i = 0; i < maxRetries; i++) {
|
||||
const messages = await this.fetchMessages({ noBody: true });
|
||||
const messages = await this.fetchMessages();
|
||||
const withSubject = messages.filter(m => m.subject === subject);
|
||||
if (withSubject.length > 0) {
|
||||
return withSubject;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user