We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6261a8b commit 72a148cCopy full SHA for 72a148c
1 file changed
internal/app/app_test.go
@@ -215,9 +215,8 @@ func TestApp_Start_WithTLS(t *testing.T) {
215
if app != nil {
216
t.Fatal("Expected app to be nil due to TLS certificate load error")
217
}
218
- expectedErr := "failed to create SMTP server: failed to load TLS certificate: open /nonexistent/cert.pem: no such file or directory"
219
- if err.Error() != expectedErr {
220
- t.Errorf("Expected error '%s', got '%s'", expectedErr, err.Error())
+ if !strings.Contains(err.Error(), "failed to create SMTP server: failed to load TLS certificate: open /nonexistent/cert.pem") {
+ t.Errorf("Expected TLS cert load error, got: %s", err.Error())
221
222
223
0 commit comments