Skip to content

tests: Fix test flake from timestamp sanitization (#2713)#2742

Merged
martinmaly merged 1 commit intokptdev:porchfrom
martinmaly:flake
Feb 4, 2022
Merged

tests: Fix test flake from timestamp sanitization (#2713)#2742
martinmaly merged 1 commit intokptdev:porchfrom
martinmaly:flake

Conversation

@martinmaly
Copy link
Copy Markdown
Contributor

  • Fix test flake from timestamp sanitization

When timestamps "overlap", sanitization did not work correctly.

For example:

in 1s ... in 2.1s

The first substitution would replace 1s => 0s

in 0s ... in 2.0s

The second substitution is predetermined, and replaces 2.1s => 0s, but
2.1s is no longer in the string.

  • Use new sanitization function in tests, remove old function

* Fix test flake from timestamp sanitization

When timestamps "overlap", sanitization did not work correctly.

For example:

in 1s ... in 2.1s

The first substitution would replace 1s => 0s

in 0s ... in 2.0s

The second substitution is predetermined, and replaces 2.1s => 0s, but
2.1s is no longer in the string.

* Use new sanitization function in tests, remove old function
Copy link
Copy Markdown
Contributor

@justinsb justinsb left a comment

Choose a reason for hiding this comment

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

Not sure if I can approve,but lgtm :-)

@martinmaly martinmaly merged commit 4ef60a7 into kptdev:porch Feb 4, 2022
@martinmaly martinmaly deleted the flake branch February 4, 2022 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants