From 3c25b61674caa4a0e209cacedf0bd2b68562cefb Mon Sep 17 00:00:00 2001 From: Lucas Hinderberger Date: Wed, 3 Jul 2024 15:52:20 +0200 Subject: [PATCH] smtp_test: Fixing assertion order for number of received messages --- internal/smtp/smtp_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/smtp/smtp_test.go b/internal/smtp/smtp_test.go index e4639b3..01731ec 100644 --- a/internal/smtp/smtp_test.go +++ b/internal/smtp/smtp_test.go @@ -22,7 +22,7 @@ var server *Server = runTestSession() func TestMessageParsing(t *testing.T) { expectedMessages := buildExpectedMessages() - require.Equal(t, len(server.receivedMessages), len(expectedMessages), "number of received messages") + require.Equal(t, len(expectedMessages), len(server.receivedMessages), "number of received messages") for i := range expectedMessages { assertMessageEqual(t, expectedMessages[i], server.receivedMessages[i])