Opened 13 years ago

Closed 5 years ago

#36 closed defect (duplicate)

051_pg_store.t error

Reported by: bob Owned by: Dominic Hargreaves
Priority: normal Milestone:
Component: wiki-toolkit Version: svn
Keywords: Cc:

Description (last modified by Dominic Hargreaves)

bobw@host34:~/svn/wikitoolkittrunk >prove -I lib -d t/051_pg_store.t 
# $Test::Harness::Switches: -Ilib
# 1 tests to run
t/051_pg_store....# Running: /usr/bin/perl -Ilib t/051_pg_store.t
# PERL5LIB=
t/051_pg_store....ok 1/9Called UNIVERSAL::can() as a function, not a method at /usr/share/perl5/Text/WikiFormat/Blocks.pm line 16
DBD::Pg::db do failed: ERROR:  could not serialise access due to concurrent update
 at lib/Wiki/Toolkit.pm line 846
# Looks like you planned 9 tests but only ran 7.
# Looks like your test died just after 7.
t/051_pg_store....dubious                                                    
        Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 8-9
        Failed 2/9 tests, 77.78% okay
Failed Test      Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/051_pg_store.t  255 65280     9    4  44.44%  8-9
Failed 1/1 test scripts, 0.00% okay. 2/9 subtests failed, 77.78% okay.

Change History (5)

comment:1 Changed 13 years ago by kake

This is happening because W::T::Store::Pg checks the actual text of the database error message, and Bob's database is spelling it "serialise" whereas we're looking for "serialize". I guess it's some form of internationalisation...

We did it like this at the time because there was no other way to get the database to tell us what the actual error was. There might be now - not sure.

comment:2 Changed 13 years ago by Dominic Hargreaves

Description: modified (diff)

comment:3 Changed 5 years ago by Dominic Hargreaves

Hi Bob,

Do you still care about this issue?

comment:4 Changed 5 years ago by bob

cant bring myself to care about this either.

comment:5 Changed 5 years ago by Dominic Hargreaves

Resolution: duplicate
Status: newclosed

Hmm, I didn't see the explantaion by Kake, which suggests this is still valid

Moved to https://github.com/OpenGuides/Wiki-Toolkit/issues/10

Note: See TracTickets for help on using tickets.