Replace current time with a static timestamp to ensure deterministic tests

This commit is contained in:
Balázs Szücs 2025-06-25 12:00:22 +02:00
parent 2f0043cf16
commit b44f110bcf

View File

@ -110,7 +110,7 @@ class EmlToPdfTest {
@Test @Test
@DisplayName("Should parse multipart email with attachments") @DisplayName("Should parse multipart email with attachments")
void parseMultipartEmailWithAttachments() throws IOException { void parseMultipartEmailWithAttachments() throws IOException {
String boundary = "----=_Part_" + System.currentTimeMillis(); String boundary = "----=_Part_" + getTimestamp();
String emlContent = createMultipartEmailWithAttachment( String emlContent = createMultipartEmailWithAttachment(
"multipart@example.com", "multipart@example.com",
"user@example.com", "user@example.com",