From: Peter Rabbitson Date: Thu, 4 Jul 2013 17:17:29 +0000 (+0200) Subject: Tests no longer fail if $ENV{DBI_DSN} is set X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=444f799b93630ab056ac1bd110661f8fc3d7c033;p=dbsrgits%2FDBIx-Class-Historic.git Tests no longer fail if $ENV{DBI_DSN} is set e.g. http://www.cpantesters.org/cpan/report/ef15dfbc-b80d-11e2-a6f8-e33723969de0 --- diff --git a/Changes b/Changes index 4ab2210..5ed445d 100644 --- a/Changes +++ b/Changes @@ -3,6 +3,7 @@ Revision history for DBIx::Class * Fixes - Setting quote_names propagates to SQL::Translator when producing SQLite DDL (it is one of the few producers *NOT* quoting by default) + - Tests no longer fail if $ENV{DBI_DSN} is set * Misc - Replace $row with $result in all docs to be consistent and to diff --git a/maint/travis-ci_scripts/30_before_script.bash b/maint/travis-ci_scripts/30_before_script.bash index 0f3030e..a1968b4 100755 --- a/maint/travis-ci_scripts/30_before_script.bash +++ b/maint/travis-ci_scripts/30_before_script.bash @@ -10,6 +10,9 @@ if [[ "$POISON_ENV" = "true" ]] ; then export $var=1 done + export DBI_DSN="dbi:ODBC:server=NonexistentServerAddress" + export DBI_DRIVER="ADO" + export DBICTEST_SQLITE_REVERSE_DEFAULT_ORDER=1 elif [[ "$CLEANTEST" != "true" ]] && ( [[ -z "$BREWVER" ]] || [[ "$BREWVER" = "blead" ]] ) ; then # try CPAN's latest offering on a stock perl and a threaded blead diff --git a/t/storage/base.t b/t/storage/base.t index b647ade..ab7e89c 100644 --- a/t/storage/base.t +++ b/t/storage/base.t @@ -148,6 +148,9 @@ for my $type (keys %$invocations) { # make sure connection-less storages do not throw on _determine_driver { + local $ENV{DBI_DSN}; + local $ENV{DBI_DRIVER}; + my $s = DBICTest::Schema->connect; is_deeply ( $s->storage->connect_info,