preaction / Minion-Backend-mysql

MySQL backend for the 🐙 Minion job runner
Other
7 stars 14 forks source link

test failure for utf8 notes #37

Open guillomovitch opened 2 years ago

guillomovitch commented 2 years ago

ok 3 - Register and unregister

Subtest: Job results

Use of Mojo::mysql::PubSub is highly EXPERIMENTAL and should be considered an experiment at /usr/share/perl5/vendor_perl/Mojo/mysql.pm line 39. ok 1 - job dequeued ok 2 - same id ok 3 - not finished ok 4 - not failed ok 5 - right result not ok 6 - right note

Failed test 'right note'

#   at t/mysql.t line 81.

Wide character in print at /usr/share/perl5/vendor_perl/Test2/Formatter/TAP.pm line 125.

Structures begin differing at:

#          $got->{foo} = Does not exist
#     $expected->{foo} = '🤬'
ok 7 - no more results
ok 8 - not failed
ok 9 - job dequeued
ok 10 - same id
ok 11 - not finished
ok 12 - right result
ok 13 - no more results
ok 14 - right result
not ok 15 - right note
#   Failed test 'right note'
#   at t/mysql.t line 100.

Wide character in print at /usr/share/perl5/vendor_perl/Test2/Formatter/TAP.pm line 125.

Structures begin differing at:

#          $got->{foo} = Does not exist
#     $expected->{foo} = '🤬'
ok 16 - no more results
ok 17 - not failed
ok 18 - not finished
ok 19 - failed
ok 20 - job no longer exists
ok 21 - not failed
1..21
# Looks like you failed 2 tests of 21.

This is happening with Minion::Backed::mysql 1.000, and mariadb 10.6.5, on a x86_64 linux host.

Interrupting the test with the debugger before the comparison occurs shows than the minion_notes table is empty, whereas I guess it should contains at least one record. I don't know if this has anything to do with issue #32, but the type for the note_value is text.