Skip to content

Commit

Permalink
Use IPv4 instead of IPv6 in tests
Browse files Browse the repository at this point in the history
IPv6 in tests is not supported by GitHub Actions
(actions/runner-images#668)
  • Loading branch information
dlste committed Oct 15, 2024
1 parent 5a0c303 commit 604a426
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/setup_tests.ts
Original file line number Diff line number Diff line change
@@ -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 () => {
Expand Down

0 comments on commit 604a426

Please sign in to comment.