kiwiroy / mojo-transaction-http-role-mechanize

Role::Tiny based role to mechanize Mojo a little
https://metacpan.org/release/Mojo-Transaction-HTTP-Role-Mechanize
1 stars 2 forks source link

Tests started to fail (with newer Mojolicious?) #9

Closed eserte closed 3 years ago

eserte commented 4 years ago

On some of my smokers:

#   Failed test 'all the forms'
#   at t/forms.t line 90.
#     Structures begin differing at:
#          $got->[0]{p} = 'P'
#     $expected->[0]{p} = Does not exist

#   Failed test 'not clicked, not included'
#   at t/forms.t line 124.
#     Structures begin differing at:
#          $got->{x} = 'y'
#     $expected->{x} = Does not exist

#   Failed test 'not clicked, not included'
#   at t/forms.t line 128.
#     Structures begin differing at:
#          $got->{x} = 'y'
#     $expected->{x} = Does not exist

#   Failed test 'correct default first submit item'
#   at t/forms.t line 150.
#     Structures begin differing at:
#          $got->{sub3} = 'Submit'
#     $expected->{sub3} = Does not exist

#   Failed test 'disabled buttons cannot be enabled'
#   at t/forms.t line 152.
#     Structures begin differing at:
#          $got->{sub1} = 'Submit'
#     $expected->{sub1} = Does not exist

#   Failed test 'no clicks - no form?'
#   at t/forms.t line 154.
#     Structures begin differing at:
#          $got->{sub1} = 'Submit'
#     $expected->{sub1} = Does not exist
# Looks like you failed 6 tests of 57.
t/forms.t ...... 
Dubious, test returned 6 (wstat 1536, 0x600)
Failed 6/57 subtests 

#   Failed test 'val'
#   at t/mechanize.t line 46.
#     Structures begin differing at:
#          $got->{p} = ARRAY(0x803573a50)
#     $expected->{p} = 'P0'

#   Failed test 'expected response, no button'
#   at t/mechanize.t line 59.
#     Structures begin differing at:
#          $got->{p} = ARRAY(0x803573ea0)
#     $expected->{p} = 'P0'

#   Failed test 'expected response, button 1'
#   at t/mechanize.t line 64.
#     Structures begin differing at:
#          $got->{p}[2] = 'P2'
#     $expected->{p}[2] = Does not exist

#   Failed test 'expected response, button 2'
#   at t/mechanize.t line 69.
#     Structures begin differing at:
#          $got->{p}[1] = 'P1'
#     $expected->{p}[1] = 'P2'

#   Failed test 'expected response - foo not included'
#   at t/mechanize.t line 74.
#     Structures begin differing at:
#          $got->{p}[2] = 'P2'
#     $expected->{p}[2] = Does not exist

#   Failed test 'expected response - foo not included'
#   at t/mechanize.t line 79.
#     Structures begin differing at:
#          $got->{p}[2] = 'P2'
#     $expected->{p}[2] = Does not exist

#   Failed test 'expected response'
#   at t/mechanize.t line 86.
#     Structures begin differing at:
#          $got->{p} = ARRAY(0x80355ee28)
#     $expected->{p} = 'P0'

#   Failed test 'expected response'
#   at t/mechanize.t line 92.
#     Structures begin differing at:
#          $got->{p} = ARRAY(0x803573dc8)
#     $expected->{p} = 'P0'

#   Failed test 'expected response'
#   at t/mechanize.t line 108.
#     Structures begin differing at:
#          $got->{p} = ARRAY(0x80351d918)
#     $expected->{p} = 'P0'
# Looks like you failed 9 tests of 24.
t/mechanize.t .. 
Dubious, test returned 9 (wstat 2304, 0x900)
Failed 9/24 subtests 

Statistical analysis suggests that the problem started somewhere between Mojolicious 8.40 and 8.50:

****************************************************************
Regression 'mod:Mojolicious'
****************************************************************
Name                   Theta          StdErr     T-stat
[0='const']           1.0000          0.0000    10048188414033924.00
[1='eq_8.12']         0.0000          0.0000       2.28
[2='eq_8.17']        -0.0000          0.0000      -1.58
[3='eq_8.26']        -0.0000          0.0000      -1.97
[4='eq_8.30']         0.0000          0.0000       2.28
[5='eq_8.33']         0.0000          0.0000       2.22
[6='eq_8.36']         0.0000          0.0000       0.79
[7='eq_8.40']        -0.0000          0.0000      -5.80
[8='eq_8.50']        -1.0000          0.0000    -9532548524058668.00
[9='eq_8.51']        -1.0000          0.0000    -9889939336457174.00

R^2= 1.000, N= 124, K= 10
****************************************************************
Tekki commented 4 years ago

I've made PR to correct this error 10 days ago, but @kiwiroy had no time yet to check it.