test: exclude timestamp from Node comparison in CreateNodeFromVertexActionTest#6321
Conversation
…ctionTest Test compared Node objects including timestampEdited, causing failures when execution timing differed by milliseconds. Copy result timestamp to expected object to compare all fields except timing-dependent timestamp.
|
@westnordost I've noticed that the date is used in some tests as well, so in theory if the date changes while the tests are running there are some more potential race conditions. But it's a can of worms ... You want me to look into this, so the tests don't fail randomly by chance at midnight? |
|
Hmm... so the I bet this is not the only point where this could happen. (So, the PR currently doesn't fix the issue.) No idea off the bat though how to fix it more holistically. |
|
I have run the tests like 20 or 30 times now on my machine and this is the only test which failed for me on my machine because of this (twice). Have you seen random failures of other tests so far? |
|
No |
|
well then |
Test compared Node objects including timestampEdited, causing failures when execution timing differed by milliseconds. Copy result timestamp to expected object to compare all fields except timing-dependent timestamp.
While running the test for #6318 the
create updatesinCreateNodeFromVertexActionTestfailed due to a race condition, so I fixed it.