This commit is contained in:
Mayel de Borniol 2023-10-02 18:37:48 +01:00
parent dcd3551c4f
commit 018cc31617
3 changed files with 7 additions and 3 deletions

View file

@ -822,5 +822,6 @@ sys-deps-debian:
./deps-debian.sh
local-tunnel-hostname:
command -v wg-quick &> /dev/null || exit "You need to install Wireguard to run the tunnel/proxy. E.g. with: brew install wireguard-tools"
([ -f tunnel.conf ] || curl https://tunnel.pyjam.as/{{PUBLIC_PORT}} > tunnel.conf) && (wg-quick up ./tunnel.conf || cat tunnel.conf) | pcregrep -o1 'https:\/\/([^/]+)'
# command -v wg-quick &> /dev/null || exit "You need to install Wireguard to run the tunnel/proxy. E.g. with: brew install wireguard-tools"
# ([ -f tunnel.conf ] || curl https://tunnel.pyjam.as/{{PUBLIC_PORT}} > tunnel.conf) && (wg-quick up ./tunnel.conf || cat tunnel.conf) | pcregrep -o1 'https:\/\/([^/]+)'
# FIXME ^ hopefully tunnel.pyjam.as comes back up or we need to find an alternative

View file

@ -429,6 +429,7 @@ if not Code.ensure_loaded?(Bonfire.Mixer) do
fallback
end
def ok_unwrap(:ok, fallback), do: fallback
def ok_unwrap(:error, fallback), do: fallback
def ok_unwrap(val, fallback), do: val || fallback
end

View file

@ -11,7 +11,9 @@ ExUnit.configure(
# Code.put_compiler_option(:nowarn_unused_vars, true)
ExUnit.start(
timeout: 200_000,
#  miliseconds
timeout: 120_000,
assert_receive_timeout: 1000,
exclude: Bonfire.Common.RuntimeConfig.skip_test_tags(),
# only show log for failed tests (Can be overridden for individual tests via `@tag capture_log: false`)
capture_log: true