Fix flaky expires_at tests #754

Merged
floatingghost merged 1 commit from Oneric/akkoma:test-flaky-expires_at into develop 2024-04-23 15:14:21 +00:00
Member

This just failed to me while there was some IO load on the system

The API parameter is not a timestamp but an offset. If a sufficient amount of time passes between the tests expires_at calculation and the internal calculation during processing of the request the strict equality assertion fails. (Either a direct equality assertion or indirect via job lookup).

To avoid this lower comparison granularity.

This just failed to me while there was some IO load on the system The API parameter is not a timestamp but an offset. If a sufficient amount of time passes between the tests expires_at calculation and the internal calculation during processing of the request the strict equality assertion fails. (Either a direct equality assertion or indirect via job lookup). To avoid this lower comparison granularity.
Oneric added 1 commit 2024-04-21 21:10:01 +00:00
Fix flaky expires_at tests
Some checks failed
ci/woodpecker/pr/lint Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/build-arm64 unknown status
ci/woodpecker/pr/docs unknown status
ci/woodpecker/pr/build-amd64 unknown status
20c22eb159
The API parameter is not a timestamp but an offset.
If a sufficient amount of time passes between the tests
expires_at calculation and the internal calculation during processing
of the request the strict equality assertion fails. (Either a direct
assertion or indirect via job lookup).

To avoid this lower comparison granularity.

all seems good, thanks!

all seems good, thanks!
floatingghost merged commit 7d89dba528 into develop 2024-04-23 15:14:21 +00:00
floatingghost deleted branch test-flaky-expires_at 2024-04-23 15:14:22 +00:00
Sign in to join this conversation.
No description provided.