@@ -6,8 +6,10 @@ const { Client, Pool, errors } = require('..')
6
6
const net = require ( 'node:net' )
7
7
const assert = require ( 'node:assert' )
8
8
9
+ const skip = ! ! process . env . CITGM
10
+
9
11
// Using describe instead of test to avoid the timeout
10
- describe ( 'prioritize socket errors over timeouts' , async ( ) => {
12
+ describe ( 'prioritize socket errors over timeouts' , { skip } , async ( ) => {
11
13
const t = tspl ( { ...assert , after : ( ) => { } } , { plan : 1 } )
12
14
const client = new Pool ( 'http://foorbar.invalid:1234' , { connectTimeout : 1 } )
13
15
@@ -29,7 +31,7 @@ net.connect = function (options) {
29
31
return new net . Socket ( options )
30
32
}
31
33
32
- test ( 'connect-timeout' , async t => {
34
+ test ( 'connect-timeout' , { skip } , async t => {
33
35
t = tspl ( t , { plan : 1 } )
34
36
35
37
const client = new Client ( 'http://localhost:9000' , {
@@ -52,7 +54,7 @@ test('connect-timeout', async t => {
52
54
await t . completed
53
55
} )
54
56
55
- test ( 'connect-timeout' , async t => {
57
+ test ( 'connect-timeout' , { skip } , async t => {
56
58
t = tspl ( t , { plan : 1 } )
57
59
58
60
const client = new Pool ( 'http://localhost:9000' , {
0 commit comments