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 14, 2024
1 parent 08aa0fd commit 3e3644f
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 3e3644f

Please sign in to comment.