]> eyrie.org Git - kerberos/wallet.git/commitdiff
Suppress unversioned database warnings in a test
authorRuss Allbery <eagle@eyrie.org>
Mon, 18 May 2020 05:20:42 +0000 (22:20 -0700)
committerRuss Allbery <eagle@eyrie.org>
Mon, 18 May 2020 05:20:42 +0000 (22:20 -0700)
In general/server, suppress warnings from an unversioned database
when testing various failure scenarios.

perl/t/general/server.t

index 0794f1583f0680a95a09b571982943e1ff263557..7ae43475068369cf18fab2180256653d9a85bf04 100755 (executable)
@@ -3,6 +3,7 @@
 # Tests for the wallet server API.
 #
 # Written by Russ Allbery <eagle@eyrie.org>
+# Copyright 2020 Russ Allbery <eagle@eyrie.org>
 # Copyright 2007-2014
 #     The Board of Trustees of the Leland Stanford Junior University
 #
@@ -1027,6 +1028,9 @@ END {
     unlink 'wallet-db';
 }
 
+# Suppress complaints from an unversioned database from DBIx::Class.
+local $ENV{DBIC_NO_VERSION_CHECK} = 1;
+
 # Now test handling of some configuration errors.
 undef $Wallet::Config::DB_DRIVER;
 $server = eval { Wallet::Server->new ($user2, $host) };