Просмотр исходного кода

fix(cthsuite): use correct type for "smth serializable as HOCON"

Andrew Mayorov 2 лет назад
Родитель
Сommit
c7ba300efc
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      apps/emqx/test/emqx_cth_suite.erl

+ 5 - 1
apps/emqx/test/emqx_cth_suite.erl

@@ -51,12 +51,16 @@
 -type appname() :: atom().
 -type appspec() :: {appname(), appspec_opts()}.
 
+%% Config structure serializable into HOCON document.
+-type config() :: #{atom() => scalar() | [scalar()] | config() | [config()]}.
+-type scalar() :: atom() | number() | string() | binary().
+
 -type appspec_opts() :: #{
     %% 1. Enable loading application config
     %% If not defined or set to `false`, this step will be skipped.
     %% If application is missing a schema module, this step will fail.
     %% Merging amounts to appending, unless `false` is used, then merge result is also `false`.
-    config => iodata() | emqx_config:config() | emqx_config:raw_config() | false,
+    config => iodata() | config() | emqx_config:raw_config() | false,
 
     %% 2. Override the application environment
     %% If not defined or set to `false`, this step will be skipped.