pauljamescleary / scala-pet-store

An implementation of the java pet store using FP techniques in scala
Apache License 2.0
1.06k stars 209 forks source link

Scalacheck spots error in PetEndpoints #204

Open zakpatterson opened 5 years ago

zakpatterson commented 5 years ago

See this build log: https://travis-ci.com/pauljamescleary/scala-pet-store/jobs/217639130

[info] PetEndpointsSpec:
[info] - create pet *** FAILED ***
[info]   MalformedMessageBodyFailure was thrown during property evaluation.
[info]     Message: Malformed message body: Invalid JSON
[info]     Occurred when passed generated values (
[info]       arg0 = Pet(K,,,Adopted,Set(),Set(http://.com),Some(1)),
[info]       arg1 = User(baopwsnrdqijsozn,,,,,,Some(1),Role(Admin))
[info]     )
[info] - update pet
[info] - find by tag

This build was triggered by a simple documentation edit, so we should figure out why this error occured, and why it only randomly occurred here. Perhaps scalacheck is not trying hard enough.

zakpatterson commented 4 years ago

This occurred again: https://travis-ci.com/pauljamescleary/scala-pet-store/jobs/228415937

[info] PetEndpointsSpec:
[info] - create pet *** FAILED ***
[info]   MalformedMessageBodyFailure was thrown during property evaluation.
[info]     Message: Malformed message body: Invalid JSON
[info]     Occurred when passed generated values (
[info]       arg0 = Pet(`,,,Adopted,Set(),Set(http://.com),None),
[info]       arg1 = User(ucctgjmbzgcxiyrh,,,,,,Some(1),Role(Admin))
[info]     )