jhthorsen / openapi-client

A client for talking to an Open API powered server
11 stars 17 forks source link

Tests fail (with newest JSON::Validator and/or Mojolicious::Plugin::OpenAPI?) #18

Closed eserte closed 5 years ago

eserte commented 5 years ago

t/command-local-with-ref.t fails:

[2019-05-05 10:15:58.60959] [9463] [debug] GET "/api" (f832912d)
[2019-05-05 10:15:58.61073] [9463] [debug] Routing to a callback
[2019-05-05 10:15:58.61165] [9463] [debug] 200 OK (0.002408s, 415.282/s)

#   Failed test 'no definitions added'
#   at t/command-local-with-ref.t line 20.
[2019-05-05 10:15:58.68958] [9463] [debug] GET "/ext" (8b70be07)
[2019-05-05 10:15:58.69027] [9463] [debug] Routing to a callback
[2019-05-05 10:15:58.69130] [9463] [debug] 200 OK (0.002s, 500.000/s)
t/command-local-with-ref.t .. skipped: Invalid JSON specification HASH(0x498726a8):
...
Test Summary Report
-------------------
t/command-local-with-ref.t (Wstat: 256 Tests: 3 Failed: 1)
  Failed test:  2
  Non-zero exit status: 1
  Parse errors: Bad plan.  You planned 0 tests but ran 3.

Statistical analysis has two candidates:

****************************************************************
Regression 'mod:Mojolicious::Plugin::OpenAPI'
****************************************************************
Name                   Theta          StdErr     T-stat
[0='const']           1.0000          0.0000    54064544849289584.00
[1='eq_2.14']        -1.0000          0.0000    -52858492505163784.00

R^2= 1.000, N= 68, K= 2
****************************************************************

****************************************************************
Regression 'mod:JSON::Validator'
****************************************************************
Name                   Theta          StdErr     T-stat
[0='const']           1.0000          0.0000    88189917184593344.00
[1='eq_3.09']        -1.0000          0.0000    -86192905442162752.00
[2='eq_3.10']        -1.0000          0.0000    -44094958592296672.00

R^2= 1.000, N= 68, K= 3
****************************************************************
eserte commented 5 years ago

Probably fixed with 0.24.