Skip to content

Commit 3af4156

Browse files
committed
fix(test-suite): the output of the tests was affected by the user's timezone
1 parent 90ccef1 commit 3af4156

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[1.5, {:a=>1, :b=>2}, 1..3, #<Set: {1, 2, 3}>, 1970-01-01 00:00:00 +0000, /ab/, #<struct Point x=5, y=6>, #<OpenStruct foo=7, bar=8>]
1+
[1.5, {:a=>1, :b=>2}, 1..3, #<Set: {1, 2, 3}>, 1970-01-01 00:00:00 UTC, /ab/, #<struct Point x=5, y=6>, #<OpenStruct foo=7, bar=8>]

test/fixtures/more_types_trace.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@
527527
{
528528
"Event": {
529529
"kind": 0,
530-
"content": "1.5\n{:a=>1, :b=>2}\n1..3\n#<Set: {1, 2, 3}>\n1970-01-01 00:00:00 +0000\n/ab/\n#<struct Point x=5, y=6>\n#<OpenStruct foo=7, bar=8>",
530+
"content": "1.5\n{:a=>1, :b=>2}\n1..3\n#<Set: {1, 2, 3}>\n1970-01-01 00:00:00 UTC\n/ab/\n#<struct Point x=5, y=6>\n#<OpenStruct foo=7, bar=8>",
531531
"metadata": ""
532532
}
533533
}

test/programs/more_types.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def inspect = "#<Set: {#{@arr.join(', ')}}>"
2020
{a: 1, b: 2},
2121
(1..3),
2222
Set.new([1, 2, 3]),
23-
Time.at(0),
23+
Time.at(0).utc,
2424
/ab/,
2525
Point.new(5, 6),
2626
OpenStruct.new(foo: 7, bar: 8)

0 commit comments

Comments
 (0)