补充SMTP中继开关测试夹具
更新测试场景,明确只有显式启用中继时才校验和投递,验证旧配置不再自动启用。
This commit is contained in:
1 parent
bbad2bcc6b
commit
4b802b5d11
5 files changed
+23
-21
No files matched your search
@@ -43,7 +43,7 @@ func TestVerificationDeliveryDoesNotHidePartialRelayConfiguration(t *testing.T)
|
||||
projectCalled := false
|
||||
delivery := newVerificationDeliveryWithDependencies(
|
||||
func() (config.SMTPRuntimeSettings, error) {
|
||||
return config.SMTPRuntimeSettings{Relay: config.SMTPConfig{RelayHost: "smtp.example.com"}}, nil
|
||||
return config.SMTPRuntimeSettings{Relay: config.SMTPConfig{RelayEnabled: true, RelayHost: "smtp.example.com"}}, nil
|
||||
},
|
||||
func(config.SMTPRuntimeSettings, verification.Challenge, string) error { return expected },
|
||||
func(verification.Challenge, string) error {
|
||||
|
||||
Reference in new issue
Block a user