changeset 69:30d6cce3f0bd

Tests: more checks for 235 code on successful smtp auth. Wrong code was fixed in 0.7.31, so it's now safe to convert remaining checks.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 09 Feb 2009 00:43:46 +0300
parents 5f56040c39df
children b9bf423929cc
files smtp.t
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/smtp.t
+++ b/smtp.t
@@ -94,7 +94,7 @@ my $s = Test::Nginx::SMTP->new();
 $s->check(qr/^5.. /, 'auth plain with bad password');
 
 $s->send('AUTH PLAIN ' . encode_base64("\0test\@example.com\0secret", ''));
-$s->ok('auth plain');
+$s->authok('auth plain');
 
 # We are talking to backend from this point
 
@@ -122,7 +122,7 @@ my $s = Test::Nginx::SMTP->new();
 $s->send(encode_base64('test@example.com', ''));
 $s->check(qr/^334 UGFzc3dvcmQ6/, 'auth login simple password challenge');
 $s->send(encode_base64('secret', ''));
-$s->ok('auth login simple');
+$s->authok('auth login simple');
 
 # Try auth plain with username.  Details:
 #