Skip to content

Commit

Permalink
Some tweaks for ImapMailReceiverTests
Browse files Browse the repository at this point in the history
  • Loading branch information
artembilan committed Jun 15, 2023
1 parent 656281e commit 8315b11
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,9 @@ public void testIdleWithServerGuts(ImapMailReceiver receiver, boolean mapped, bo
assertThat(received.getPayload()).isEqualTo("foo");
}
}
user.deliver(GreenMailUtil.createTextEmail("to", "Bar <bar@baz>", "subject", "body",
user.deliver(GreenMailUtil.createTextEmail("to", "Bar <bar@baz>", "subject", "body\r\n",
imapIdleServer.getImap().getServerSetup()));
assertThat(channel.receive(20000)).isNotNull(); // new message after idle
assertThat(channel.receive(30000)).isNotNull(); // new message after idle
assertThat(channel.receive(100)).isNull(); // no new message after second and third idle

adapter.stop();
Expand Down

0 comments on commit 8315b11

Please sign in to comment.