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

Make sure crypt applications are started for crypto test, add asn1 to
list of required apps to start. If it's not present, public_key will
not start.

David N. Welton 11 лет назад
Родитель
Сommit
1f6b18d0b0
1 измененных файлов с 4 добавлено и 2 удалено
  1. 4 2
      test/pgsql_tests.erl

+ 4 - 2
test/pgsql_tests.erl

@@ -10,7 +10,7 @@
 -define(host, "localhost").
 -define(port, 5432).
 
--define(ssl_apps, [crypto, public_key, ssl]).
+-define(ssl_apps, [crypto, asn1, public_key, ssl]).
 
 connect_test(Module) ->
     connect_only(Module, []).
@@ -55,7 +55,9 @@ connect_with_invalid_password_test(Module) ->
 
 
 connect_with_ssl_test(Module) ->
-    lists:foreach(fun application:start/1, ?ssl_apps),
+    lists:map(fun(A) ->
+                      ok = application:start(A)
+              end, ?ssl_apps),
     with_connection(
       Module,
       fun(C) ->