aports/community/eturnal/fix-tests.patch
Saarko 4c5d88c82a community/eturnal: move from testing
package should fulfill all relevant requirements according to wiki.

in other cases, please let us know :)
2022-10-26 09:53:26 +00:00

40 lines
1.6 KiB
Diff

diff --git a/doc/overview.edoc b/doc/overview.edoc
index 769e5fd..21736c5 100644
--- a/doc/overview.edoc
+++ b/doc/overview.edoc
@@ -368,7 +368,7 @@ This option defines the shared authentication secret used to derive the
passwords for ephemeral TURN user names as described in the <a
href="https://tools.ietf.org/html/draft-uberti-behave-turn-rest-00">REST API for
Access to TURN Services</a> specification. If this option isn't defined, the
-value of the environment variable {@section ETURNAL_SECRET}) is used instead. If
+value of the environment variable {@section ETURNAL_SECRET} is used instead. If
this environment variable is unset as well, a pseudorandom secret (which is
<em>not</em> cryptographically secure) is used. If a list of secrets is
specified, credentials derived from any of those will be accepted. This allows
diff --git a/src/eturnal_ctl.erl b/src/eturnal_ctl.erl
index 9f2e1ff..2810050 100644
--- a/src/eturnal_ctl.erl
+++ b/src/eturnal_ctl.erl
@@ -443,7 +443,7 @@ nl() ->
-spec call(term()) -> ok | {ok | error, term()}.
call(Request) ->
- try gen_server:call(eturnal, Request) of
+ try gen_server:call(eturnal, Request, timer:minutes(1)) of
ok ->
?LOG_DEBUG("eturnal call (~p) returned ok", [Request]),
ok;
diff --git a/test/eturnal_SUITE.erl b/test/eturnal_SUITE.erl
index 8a0cfce..d41e3b5 100644
--- a/test/eturnal_SUITE.erl
+++ b/test/eturnal_SUITE.erl
@@ -31,7 +31,7 @@
-spec suite() -> [info()].
suite() ->
- [{timetrap, {seconds, 30}}].
+ [{timetrap, {seconds, 120}}].
-spec init_per_suite(config()) -> config().
init_per_suite(Config) ->