@@ -286,61 +286,7 @@ defmodule Mix.Tasks.TestTest do
286286
287287 Port . command ( port , "\n " )
288288
289- assert receive_until_match ( port , "No stale tests" , "" ) =~ "Restarting..."
290- end )
291- end
292-
293- @ tag :unix
294- test "does not exit on compilation failure" do
295- in_fixture ( "test_stale" , fn ->
296- File . write! ( "lib/b.ex" , """
297- defmodule B do
298- def f, do: error_not_a_var
299- end
300- """ )
301-
302- port = mix_port ( ~w[ test --listen-on-stdin] )
303-
304- assert receive_until_match ( port , "error" , "" ) =~ "lib/b.ex"
305-
306- File . write! ( "lib/b.ex" , """
307- defmodule B do
308- def f, do: A.f
309- end
310- """ )
311-
312- Port . command ( port , "\n " )
313-
314- assert receive_until_match ( port , "0 failures" , "" ) =~ "2 tests"
315-
316- File . write! ( "test/b_test_stale.exs" , """
317- defmodule BTest do
318- use ExUnit.Case
319-
320- test "f" do
321- assert B.f() == error_not_a_var
322- end
323- end
324- """ )
325-
326- Port . command ( port , "\n " )
327-
328- message = "undefined variable \" error_not_a_var\" "
329- assert receive_until_match ( port , message , "" ) =~ "test/b_test_stale.exs"
330-
331- File . write! ( "test/b_test_stale.exs" , """
332- defmodule BTest do
333- use ExUnit.Case
334-
335- test "f" do
336- assert B.f() == :ok
337- end
338- end
339- """ )
340-
341- Port . command ( port , "\n " )
342-
343- assert receive_until_match ( port , "0 failures" , "" ) =~ "2 tests"
289+ assert receive_until_match ( port , "Restarting..." , "" ) =~ "Restarting..."
344290 end )
345291 end
346292 end
0 commit comments