Subject: | Test timestamp_order.t fails |
Date: | Wed, 4 Sep 2019 14:22:09 +0200 |
To: | bug-DBIx-Class-EncodedColumn [...] rt.cpan.org |
From: | Jitka Plesnikova <jplesnik [...] redhat.com> |
The tests of DBIx-Class-EncodedColumn-0.00017 fails with following error:
BUILDSTDERR: Can't locate DigestTest/Schema.pm in @INC (you may need to install the DigestTest::Schema module) (@INC contains: /builddir/build/BUILD/DBIx-Class-EncodedColumn/t/author/lib /builddir/build/BUILD/DBIx-Class-EncodedColumn/inc /builddir/build/BUILD/DBIx-Class-EncodedColumn/blib/lib /builddir/build/BUILD/DBIx-Class-EncodedColumn/blib/arch /usr/local/lib/perl5/5.30 /usr/local/share/perl5/5.30 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .) at t/author/timestamp_order.t line 9.
BUILDSTDERR: BEGIN failed--compilation aborted at t/author/timestamp_order.t line 9.
t/author/timestamp_order.t ..
Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
The error was cause by wrong setting of path to test's libraries. The attached patch solve the issue.
After fixing path, the test failed with error
# perl -Ilib ./t/author/timestamp_order.t
DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::SQLite::st execute failed: NOT NULL constraint failed: test_timestamp_order.updated [for Statement "INSERT INTO test_timestamp_order ( created, password, username) VALUES ( ?, ?, ? )" with ParamValues: 1='2019-09-04 11:57:42', 2='ab443dbc999f919c9dbfd017a3bc6bd1faf3a4a8MFb/mucKyX', 3='testuser'] at ./t/author/timestamp_order.t line 19
DBIx::Class::Storage::TxnScopeGuard::DESTROY(): A DBIx::Class::Storage::TxnScopeGuard went out of scope without explicit commit or error. Rolling back. at /usr/share/perl5/vendor_perl/DBIx/Class/Exception.pm line 77
Right now, I don't know how to solve it.
Jitka
--
Jitka Plesnikova
Software Engineer
Red Hat
Message body is not shown because sender requested not to inline it.