tonobo / hcloud-ruby

Native ruby client for HetznerCloud
MIT License
32 stars 11 forks source link

Doubles tests failure with seed 50938 #46

Closed ghost closed 1 year ago

ghost commented 1 year ago

We found a situation in which the doubles tests do not run successfully with random order. The following seed breaks the tests:

bundle exec rspec -t doubles --order rand --seed 50938
ghost commented 1 year ago

imo the problem is not (as I thought) the test order, but instead the random choice range. The test can choose 100 to 150 actions and then tests pagination with 50 items per page. For 100 items this requires one page less. Setting the range to 101 to 150 should do the trick.