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 16, 2024
1 parent 3a8ef45 commit 0d0e7bb
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 0d0e7bb

Please sign in to comment.