File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,7 @@ defmodule Mox.Application do
4
4
use Application
5
5
6
6
def start ( _ , _ ) do
7
- children = [
8
- Mox.Server ,
9
- { Task.Supervisor , name: MoxTests.TaskSupervisor } ,
10
- ]
7
+ children = [ Mox.Server ]
11
8
Supervisor . start_link ( children , name: Mox.Supervisor , strategy: :one_for_one )
12
9
end
13
10
end
Original file line number Diff line number Diff line change @@ -405,6 +405,7 @@ defmodule MoxTest do
405
405
end
406
406
407
407
test "verifies mocks are over-called for the current process in global mode" do
408
+ start_supervised! ( { Task.Supervisor , name: MoxTests.TaskSupervisor } )
408
409
set_mox_global ( )
409
410
410
411
verify! ( )
@@ -485,6 +486,7 @@ defmodule MoxTest do
485
486
end
486
487
487
488
test "verifies mocks are over-called for the current process in global mode" do
489
+ start_supervised! ( { Task.Supervisor , name: MoxTests.TaskSupervisor } )
488
490
set_mox_global ( )
489
491
490
492
verify! ( )
You can’t perform that action at this time.
0 commit comments