Skip to content

Commit

Permalink
Rollup merge of #96668 - GuillaumeGomez:fix-rustdoc-ui-flaky-test, r=…
Browse files Browse the repository at this point in the history
…petrochenkov

Fix flaky rustdoc-ui test because it did not replace time result

As mentioned in #93715: a test is flaky because I forgot to replace the time value.

This PR fixes it.

r? ``@petrochenkov``
  • Loading branch information
JohnTitor authored May 4, 2022
2 parents 33d507a + 56c2769 commit b255bf9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/test/rustdoc-ui/block-doc-comment.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// check-pass
// compile-flags:--test
// normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"

// This test ensures that no code block is detected in the doc comments.

Expand Down
2 changes: 1 addition & 1 deletion src/test/rustdoc-ui/block-doc-comment.stdout
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME

0 comments on commit b255bf9

Please sign in to comment.