Skip to content

Commit 9e3ae70

Browse files
authored
Merge pull request #210 from Shopify/rwstauner/format-seconds
Make seconds fraction optional when normalizing test output
2 parents 3fed73b + 8f28c2a commit 9e3ae70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ruby/test/support/output_test_helpers.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def strip_heredoc(heredoc)
1717
end
1818

1919
def freeze_timing(output)
20-
output.to_s.gsub(/\d+\.\d+s/, 'X.XXs').gsub(/ \d+\.\d+ seconds /, ' X.XXXXX seconds ')
20+
output.to_s.gsub(/\d+\.\d+s/, 'X.XXs').gsub(/ \d+(\.\d+)? seconds /, ' X.XXXXX seconds ')
2121
end
2222

2323
def freeze_seed(output)

0 commit comments

Comments
 (0)