Skip to content

Commit 2ee953f

Browse files
committed
Preload protocols before running Mix suite
1 parent ea3e498 commit 2ee953f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/mix/test/test_helper.exs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ System.put_env("MIX_HOME", mix)
99
System.delete_env("XDG_DATA_HOME")
1010
System.delete_env("XDG_CONFIG_HOME")
1111

12+
# Load protocols to make sure they are not unloaded during tests
13+
[Collectable, Enumerable, Inspect, String.Chars, List.Chars]
14+
|> Enum.each(& &1.__protocol__(:module))
15+
1216
## Setup Mix
1317

1418
Mix.start()

0 commit comments

Comments
 (0)