refactor: remove mutex from CustomEvent and update TCP connection handling in tests

This commit is contained in:
CaIon
2026-07-28 15:09:49 +08:00
parent c3db41407d
commit 8e2bfe278b
2 changed files with 3 additions and 6 deletions
+1 -1
View File
@@ -364,7 +364,7 @@ func TestSMTPPlainAuthRejectsRemotePlaintextConnection(t *testing.T) {
SMTPFrom = "sender@example.com"
SMTPToken = "secret"
conn, err := net.Dial("tcp", fmt.Sprintf("%s:%d", server.host, server.port))
conn, err := net.Dial("tcp", net.JoinHostPort(server.host, strconv.Itoa(server.port)))
require.NoError(t, err)
client, err := smtp.NewClient(conn, SMTPServer)
require.NoError(t, err)