@@ -34,13 +34,13 @@ test(function serverKeepAliveTimeoutWithPipeline(cb) {
34
34
common . mustCall ( ( req , res ) => {
35
35
res . end ( ) ;
36
36
} , 3 ) ) ;
37
- server . setTimeout ( 500 , common . mustCall ( ( socket ) => {
37
+ server . setTimeout ( common . platformTimeout ( 500 ) , common . mustCall ( ( socket ) => {
38
38
// End this test and call `run()` for the next test (if any).
39
39
socket . destroy ( ) ;
40
40
server . close ( ) ;
41
41
cb ( ) ;
42
42
} ) ) ;
43
- server . keepAliveTimeout = 50 ;
43
+ server . keepAliveTimeout = common . platformTimeout ( 50 ) ;
44
44
server . listen ( 0 , common . mustCall ( ( ) => {
45
45
const options = {
46
46
port : server . address ( ) . port ,
@@ -57,13 +57,13 @@ test(function serverKeepAliveTimeoutWithPipeline(cb) {
57
57
58
58
test ( function serverNoEndKeepAliveTimeoutWithPipeline ( cb ) {
59
59
const server = https . createServer ( serverOptions , common . mustCall ( 3 ) ) ;
60
- server . setTimeout ( 500 , common . mustCall ( ( socket ) => {
60
+ server . setTimeout ( common . platformTimeout ( 500 ) , common . mustCall ( ( socket ) => {
61
61
// End this test and call `run()` for the next test (if any).
62
62
socket . destroy ( ) ;
63
63
server . close ( ) ;
64
64
cb ( ) ;
65
65
} ) ) ;
66
- server . keepAliveTimeout = 50 ;
66
+ server . keepAliveTimeout = common . platformTimeout ( 50 ) ;
67
67
server . listen ( 0 , common . mustCall ( ( ) => {
68
68
const options = {
69
69
port : server . address ( ) . port ,
0 commit comments