From: Jason Etheridge Date: Tue, 16 Jun 2015 16:30:38 +0000 (-0400) Subject: fix live_t/08-lp1366964-libdbi-error.t X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=5b8afb4ff880a08e19d17537872e07dbb702bc38;p=evergreen%2Fmasslnc.git fix live_t/08-lp1366964-libdbi-error.t from this: opensrf@dev141:~/git/Evergreen/Open-ILS/src/perlmods/live_t (lp902255test)$ prove 08-lp1366964-libdbi-error.t 08-lp1366964-libdbi-error.t .. # Tests libdbi transaction error reporting 08-lp1366964-libdbi-error.t .. 1/2 # Failed test 'CStoreEditor returns standard query error' # at 08-lp1366964-libdbi-error.t line 31. # got: 'DATABASE_UPDATE_FAILED' # expected: 'DATABASE_QUERY_FAILED' # Looks like you failed 1 test of 2. 08-lp1366964-libdbi-error.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/2 subtests Test Summary Report ------------------- 08-lp1366964-libdbi-error.t (Wstat: 256 Tests: 2 Failed: 1) Failed test: 2 Non-zero exit status: 1 Files=1, Tests=2, 1 wallclock secs ( 0.02 usr 0.01 sys + 0.82 cusr 0.11 csys = 0.96 CPU) Result: FAIL to this: opensrf@dev141:~/git/Evergreen/Open-ILS/src/perlmods/live_t (lp902255test)$ prove 08-lp1366964-libdbi-error.t 08-lp1366964-libdbi-error.t .. # Tests libdbi transaction error reporting 08-lp1366964-libdbi-error.t .. ok All tests successful. Files=1, Tests=2, 2 wallclock secs ( 0.02 usr 0.02 sys + 0.85 cusr 0.08 csys = 0.97 CPU) Result: PASS Signed-off-by: Jason Etheridge Signed-off-by: Mike Rylander --- diff --git a/Open-ILS/src/perlmods/live_t/08-lp1366964-libdbi-error.t b/Open-ILS/src/perlmods/live_t/08-lp1366964-libdbi-error.t index 3164a6c297..f69091b567 100644 --- a/Open-ILS/src/perlmods/live_t/08-lp1366964-libdbi-error.t +++ b/Open-ILS/src/perlmods/live_t/08-lp1366964-libdbi-error.t @@ -26,11 +26,11 @@ my $evt = $e->die_event; # this part takes the longest my $duration = time - $start; cmp_ok($duration, '<', '10', - 'Confirm cstore reports standard query error in a timely fashion'); + 'Confirm cstore reports standard update query error in a timely fashion'); if ($evt) { - is($evt->{textcode}, 'DATABASE_QUERY_FAILED', - 'CStoreEditor returns standard query error'); + is($evt->{textcode}, 'DATABASE_UPDATE_FAILED', + 'CStoreEditor returns standard update query error'); } else { fail('CStoreEditor returned no event'); }