fix tests

This commit is contained in:
Bilal Godil 2025-09-11 18:37:18 -07:00
parent f42dfc5351
commit f35fcde87f

View File

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