aftermath2 / btry

Accountless lottery powered by the Bitcoin Lightning Network
GNU Affero General Public License v3.0
3 stars 1 forks source link

Fix rate limiter unit test #7

Open aftermath2 opened 10 months ago

aftermath2 commented 10 months ago

Description

The http\api\middleware\limiter_test.go unit test is failing on Ubuntu but passing on other OSs.

The logic seems correct, but there might be a difference in the funcionality of the httptest.Recorder that is causing it to fail.

https://github.com/aftermath2/btry/blob/93ff8e9d4ff37187b925449e332a45c47968b6e8/http/api/middleware/limiter_test.go#L17-L17