preaction / Yancy

The Best Web Framework Deserves the Best Content Management System
http://preaction.me/yancy/
Other
54 stars 21 forks source link

Tests may fail (with older Mojolicious::Plugin::OpenAPI?) #4

Closed eserte closed 6 years ago

eserte commented 6 years ago

On a few of my smokers the test suite fails:

    #   Failed test 'User is not authorized for API spec'
    #   at t/plugin/auth/basic.t line 56.
    #          got: '404'
    #     expected: '401'

...

    #   Failed test 'User is not authorized to delete a user'
    #   at t/plugin/auth/basic.t line 76.
    #          got: '404'
    #     expected: '401'
    # Looks like you failed 6 tests of 21.

#   Failed test 'unauthenticated user cannot admin'
#   at t/plugin/auth/basic.t line 80.
# Looks like you failed 1 test of 4.
t/plugin/auth/basic.t ........ 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/4 subtests 

Probably this happens if Mojolicious::Plugin::OpenAPI is too old (i.e. 1.16 seems to be too old). Statistical analysis:

****************************************************************
Regression 'mod:Mojolicious::Plugin::OpenAPI'
****************************************************************
Name                   Theta          StdErr     T-stat
[0='const']           0.0000          0.0000       0.51
[1='eq_1.16']         0.0000          0.0000       1.09
[2='eq_1.19']         1.0000          0.0000    3267025968841381.50
[3='eq_1.22']         1.0000          0.0000    4567467586025256.00

R^2= 1.000, N= 46, K= 4
****************************************************************