ci: prevent Periodic failure, ensure VSMTP_TEST_USER/VSMTP_TEST_PASS are set in smtp_test.v

pull/6610/head
Delyan Angelov 2020-10-13 09:22:28 +03:00
parent 57d705e265
commit 28dea17065
1 changed files with 4 additions and 1 deletions

View File

@ -22,7 +22,10 @@ fn test_smtp() {
username: os.getenv('VSMTP_TEST_USER')
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{
to: 'dev@vlang.io'
subject: 'Hello from V2'