From 0d0e7bbccb2c844a985420889c01b68f18996707 Mon Sep 17 00:00:00 2001 From: Stefano Di Leo Date: Mon, 14 Oct 2024 16:31:50 +0200 Subject: [PATCH] Use IPv4 instead of IPv6 in tests IPv6 in tests is not supported by GitHub Actions (https://github.com/actions/runner-images/issues/668) --- server/setup_tests.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/setup_tests.ts b/server/setup_tests.ts index 6464a80..857105d 100644 --- a/server/setup_tests.ts +++ b/server/setup_tests.ts @@ -1,6 +1,9 @@ require('ts-node/register') import db from './src/db/db' +import { setDefaultResultOrder } from 'dns' +setDefaultResultOrder("ipv4first"); + // Always open the db before starting tests. Not always necessary, but // potentially avoids mistakes global.beforeEach(async () => {