Browse Source

Fix static_handler suite code path

A future OTP release will use 'strict' code path by default.
This change ensures it works both for old and new OTP.
Loïc Hoguin 1 year ago
parent
commit
a72bf4105f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/static_handler_SUITE.erl

+ 1 - 1
test/static_handler_SUITE.erl

@@ -65,7 +65,7 @@ init_per_suite(Config) ->
 	%% Add a simple Erlang application archive containing one file
 	%% Add a simple Erlang application archive containing one file
 	%% in its priv directory.
 	%% in its priv directory.
 	true = code:add_pathz(filename:join(
 	true = code:add_pathz(filename:join(
-		[config(data_dir, Config), "static_files_app", "ebin"])),
+		[config(data_dir, Config), "static_files_app.ez", "static_files_app", "ebin"])),
 	ok = application:load(static_files_app),
 	ok = application:load(static_files_app),
 	%% A special folder contains files of 1 character from 1 to 127
 	%% A special folder contains files of 1 character from 1 to 127
 	%% excluding / and \ as they are always rejected.
 	%% excluding / and \ as they are always rejected.