Skip to content

Commit

Permalink
test(live): improve display title
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbyheart committed Mar 8, 2024
1 parent 0a243cc commit aac6e67
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/live-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:

strategy:
matrix:
ipv: [4, 6]
ipv: [ipv4, ipv6]

steps:
- uses: actions/checkout@v4
Expand All @@ -51,10 +51,10 @@ jobs:
run: npm ci --no-audit

- name: Set up WARP
if: matrix.ipv == 6
if: matrix.ipv == 'ipv6'
uses: fscarmen/[email protected]

- name: Run tests (IPv4)
- name: Run tests
env:
IPV: ${{ matrix.ipv }}
HOSTNAME: ${{ env.HOSTNAME }}
Expand Down
5 changes: 3 additions & 2 deletions test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ import { randomWords } from "@nordicsemiconductor/random-words";
import { ipv4, ipv6 } from "./ip";

const hostname = process.env.HOSTNAME ?? "localhost";
const ipv = process.env.IPV ?? "4";
const ipv = process.env.IPV ?? "ipv4";

const addr = ipv === "6" ? `[${await ipv6(hostname)}]` : await ipv4(hostname);
const addr =
ipv === "ipv6" ? `[${await ipv6(hostname)}]` : await ipv4(hostname);

describe("MQTT server", async () => {
await Promise.all(
Expand Down

0 comments on commit aac6e67

Please sign in to comment.