Skip to content

chore: Fix flaky unit test - #661

Open
asteiner-swisstopo wants to merge 1 commit into
developfrom
chore-fix-flaky-unit-test
Open

chore: Fix flaky unit test#661
asteiner-swisstopo wants to merge 1 commit into
developfrom
chore-fix-flaky-unit-test

Conversation

@asteiner-swisstopo

Copy link
Copy Markdown
Contributor

This test fails occasionally with

Property expires can't be in the past.

because sometimes it may take more than 100ms between getting the current time and validating the item.

To mitigate that, I increased the delta from 100ms to 10m.

This test fails occasionall with

> Property expires can't be in the past.

because sometimes it may take more than 100ms between getting the
current time and validating the item.

To mitigate that, I increased the delta from 100ms to 10m.
@asteiner-swisstopo asteiner-swisstopo self-assigned this Aug 20, 2026
@github-actions github-actions Bot added the skip-release-note Issue or PR excluded from the release notes label Aug 20, 2026

@ltshb ltshb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why 10min ? Sounds like a lot more than 100ms, would it not be better to simply increase it a little bit, like 1-3s. 100ms is very short for python creation in DB but it should be able to do it in less than 1min.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-release-note Issue or PR excluded from the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants