Skip to content

Commit f45d759

Browse files
committed
fix(tests): fix tests after previous commit
1 parent 5f3d92e commit f45d759

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

test/fixtures/addition_trace.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@
232232
{
233233
"Event": {
234234
"kind": 0,
235-
"content": "3",
235+
"content": "3\n",
236236
"metadata": ""
237237
}
238238
}

test/fixtures/args_sum_trace.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@
261261
{
262262
"Event": {
263263
"kind": 0,
264-
"content": "6",
264+
"content": "6\n",
265265
"metadata": ""
266266
}
267267
}

test/fixtures/array_sum_trace.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@
521521
{
522522
"Event": {
523523
"kind": 0,
524-
"content": "6",
524+
"content": "6\n",
525525
"metadata": ""
526526
}
527527
}

test/test_kernel_patches.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def test_patching_and_basic_event_recording
4949
event_puts = @tracer1.events[1]
5050
assert_equal __FILE__, event_puts[:path]
5151
assert_equal expected_line_puts, event_puts[:lineno]
52-
assert_equal "world", event_puts[:content]
52+
assert_equal "world\n", event_puts[:content]
5353

5454
event_print = @tracer1.events[2]
5555
assert_equal __FILE__, event_print[:path]
@@ -146,7 +146,7 @@ def test_correct_event_arguments
146146
assert_equal __FILE__, event_puts[:path], "Path for puts mismatch"
147147
assert_equal expected_line_puts_detailed, event_puts[:lineno], "Line number for puts mismatch"
148148
# puts calls to_s on each argument and prints each on a new line
149-
assert_equal "detailed_puts\n{:key=>\"value\", :number=>123}", event_puts[:content], "Content for puts mismatch"
149+
assert_equal "detailed_puts\n{:key=>\"value\", :number=>123}\n", event_puts[:content], "Content for puts mismatch"
150150

151151

152152
event_print = @tracer1.events[2]

0 commit comments

Comments
 (0)