Skip to content

Commit b450609

Browse files
committed
ci: checkout pinned moq-dev relay workspace
1 parent 9ae7296 commit b450609

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@ jobs:
5959
steps:
6060
- uses: actions/checkout@v4
6161

62+
- name: Check out pinned moq-dev relay workspace
63+
uses: actions/checkout@v4
64+
with:
65+
repository: moq-dev/moq
66+
ref: aae43f824b9b8d93b68dd6a765f8bec691f60c0b
67+
path: .moq-dev
68+
6269
- uses: erlef/setup-beam@v1
6370
with:
6471
elixir-version: '1.19.0'

test/support/relay.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ defmodule MOQX.Test.Relay do
211211
defp wait_for_ports(ports, timeout) do
212212
probes =
213213
Enum.map_join(ports, " && ", fn port ->
214-
"lsof -nP -iTCP:#{port} -sTCP:LISTEN -iUDP:#{port} 2>/dev/null | grep moq-relay >/dev/null"
214+
"((lsof -nP -iTCP:#{port} -sTCP:LISTEN 2>/dev/null || true); (lsof -nP -iUDP:#{port} 2>/dev/null || true)) | grep moq-relay >/dev/null"
215215
end)
216216

217217
case System.cmd("sh", ["-c", probes]) do

0 commit comments

Comments
 (0)