Skip to content

Commit fec22ce

Browse files
committed
Fix tests
1 parent 10b4d76 commit fec22ce

2 files changed

Lines changed: 14 additions & 3 deletions

File tree

test/livebook/runtime/dependencies_test.exs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,10 @@ defmodule Livebook.Runtime.DependenciesTest do
4444
assert Dependencies.insert_mix_dependencies("# Comment", [@req]) ==
4545
{:ok,
4646
"""
47+
# Comment
4748
Mix.install([
4849
{:req, "~> 0.5.0"}
49-
])
50-
51-
# Comment\
50+
])\
5251
"""}
5352

5453
assert Dependencies.insert_mix_dependencies(

test/livebook/runtime/evaluator_test.exs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,12 +321,24 @@ defmodule Livebook.Runtime.EvaluatorTest do
321321
assert_receive {:runtime_evaluation_response, :code_1, error(message), metadata()},
322322
2_000
323323

324+
app_version = Livebook.Config.app_version()
325+
324326
assert clean_message(message) ==
325327
"""
326328
** (ArithmeticError) bad argument in arithmetic expression
327329
nofile:3: Livebook.Runtime.EvaluatorTest.Stacktrace.Math.bad_math/0
328330
nofile:10: Livebook.Runtime.EvaluatorTest.Stacktrace.Cat.meow/0
329331
nofile:15: (file)
332+
(elixir 1.20.0) elixir.erl:382: :elixir.eval_external_handler/3
333+
(stdlib 7.3) erl_eval.erl:924: :erl_eval.do_apply/7
334+
(elixir 1.20.0) elixir.erl:365: :elixir.erl_eval/3
335+
(elixir 1.20.0) elixir.erl:329: :elixir.eval_forms/4
336+
(elixir 1.20.0) lib/module/parallel_checker.ex:156: Module.ParallelChecker.verify/1
337+
(livebook #{app_version}) lib/livebook/runtime/evaluator.ex:653: anonymous fn/3 in Livebook.Runtime.Evaluator.eval_elixir/3
338+
(elixir 1.20.0) lib/code.ex:699: Code.with_diagnostics/2
339+
(livebook #{app_version}) lib/livebook/runtime/evaluator.ex:647: Livebook.Runtime.Evaluator.eval_elixir/3
340+
(livebook #{app_version}) lib/livebook/runtime/evaluator.ex:436: Livebook.Runtime.Evaluator.continue_do_evaluate_code/6
341+
(livebook #{app_version}) lib/livebook/runtime/evaluator.ex:333: Livebook.Runtime.Evaluator.loop/1
330342
"""
331343
end
332344

0 commit comments

Comments
 (0)