-
Notifications
You must be signed in to change notification settings - Fork 0
Tests and Travis build
Ferdinando edited this page Jul 16, 2019
·
1 revision
It is known that the current test suite has got a test which is randomly failing:
ApiObjectTest#test_including_api_object_adds_to_api_objects [/home/travis/build/unepwcmc/protectedplanet-api/test/models/concerns/api_object_test.rb:7]:
Expected false to be truthy.
This won't happen at every build, making tests a bit unreliable.
It happened that for the very same Travis configuration (.travis.yml file), Travis was launching two different installations/distributions for two different branches, making one to fail. To fix it, the following line specifying the distribution for Travis to use has been added:
dist: trusty
The reason for why that happened is still unknown; the build was used to pass without the need to specify the distribution.