[svn:DBD-Pg] r11684 - DBD-Pg/trunk/t

[email protected]
Newsgroups perl.dbd.pg.changes
Message-ID <[email protected]>
Author: turnstep
Date: Thu Aug 28 19:00:24 2008
New Revision: 11684

Modified:
   DBD-Pg/trunk/t/01connect.t

Log:
Don't try and create a new database when testing known invalid command string.
Fixes a long-outstanding mystery CPAN tester failure.


Modified: DBD-Pg/trunk/t/01connect.t
==============================================================================
--- DBD-Pg/trunk/t/01connect.t	(original)
+++ DBD-Pg/trunk/t/01connect.t	Thu Aug 28 19:00:24 2008
@@ -72,7 +72,7 @@
 
 	$t=q{Connect with invalid option fails};
 	my $err;
-	(undef,$err,$dbh) = connect_database({ dbreplace => 'dbbarf' });
+	(undef,$err,$dbh) = connect_database({ dbreplace => 'dbbarf', nocreate => 1 });
 	like ($err, qr{DBI connect.+failed:}, $t);
 
 	for my $opt (qw/db dbname database/) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.