Skip to content

Commit

Permalink
Fix test flakiness (float point printing)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukstafi committed Mar 20, 2024
1 parent d513862 commit f622259
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_expect_test.ml
Original file line number Diff line number Diff line change
Expand Up @@ -3580,7 +3580,7 @@ let%expect_test "flame graph" =
close_in file;
let output = [%expect.output] in
let output =
Str.global_replace (Str.regexp {|[0-9]+\.[0-9]+%|}) "N.NNNN%" output
Str.global_replace (Str.regexp {|[0-9]+\.[0-9]*%|}) "N.NNNN%" output
in
print_endline output;
[%expect
Expand Down Expand Up @@ -3685,7 +3685,7 @@ let%expect_test "flame graph reduced ToC" =
close_in file;
let output = [%expect.output] in
let output =
Str.global_replace (Str.regexp {|[0-9]+\.[0-9]+%|}) "N.NNNN%" output
Str.global_replace (Str.regexp {|[0-9]+\.[0-9]*%|}) "N.NNNN%" output
in
print_endline output;
[%expect
Expand Down

0 comments on commit f622259

Please sign in to comment.