ci: prevent Periodic failure, ensure VSMTP_TEST_USER/VSMTP_TEST_PASS are set in smtp_test.v
parent
57d705e265
commit
28dea17065
|
@ -22,7 +22,10 @@ fn test_smtp() {
|
||||||
username: os.getenv('VSMTP_TEST_USER')
|
username: os.getenv('VSMTP_TEST_USER')
|
||||||
password: os.getenv('VSMTP_TEST_PASS')
|
password: os.getenv('VSMTP_TEST_PASS')
|
||||||
}
|
}
|
||||||
|
if client_cfg.username == '' && client_cfg.password == '' {
|
||||||
|
eprintln('Please set VSMTP_TEST_USER and VSMTP_TEST_PASS before running this test')
|
||||||
|
exit(0)
|
||||||
|
}
|
||||||
send_cfg := smtp.Mail{
|
send_cfg := smtp.Mail{
|
||||||
to: 'dev@vlang.io'
|
to: 'dev@vlang.io'
|
||||||
subject: 'Hello from V2'
|
subject: 'Hello from V2'
|
||||||
|
|
Loading…
Reference in New Issue