mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
ci: prevent Periodic failure, ensure VSMTP_TEST_USER/VSMTP_TEST_PASS are set in smtp_test.v
This commit is contained in:
parent
57d705e265
commit
28dea17065
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user