From 52d61eb2fa7351f80014755e7fb69f8c1c5cd308 Mon Sep 17 00:00:00 2001 From: Devin Ivy Date: Sun, 10 May 2020 01:10:04 -0400 Subject: [PATCH] Support node v14, more tweaks to avoid node v8 segfault on test cleanup --- .travis.yml | 1 + LICENSE | 2 +- test/index.js | 5 ++++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2490294..06984d8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,7 @@ node_js: - "8" - "10" - "12" + - "14" - "node" after_script: "npm run coveralls" diff --git a/LICENSE b/LICENSE index ad5da4f..fd7cdbe 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 201-2019, Project contributors +Copyright (c) 2018-2020, Project contributors Copyright (c) 2016-2018, Devin Ivy Permission is hereby granted, free of charge, to any person obtaining a copy of diff --git a/test/index.js b/test/index.js index 45c3dbd..60a6eb1 100644 --- a/test/index.js +++ b/test/index.js @@ -1282,7 +1282,10 @@ describe('Underdog', () => { const { pushStream } = stream; stream.pushStream = (headers, cb) => { - pushStream.call(stream, headers, () => cb(new Error('Oops!'))); + pushStream.call(stream, headers, () => { + + process.nextTick(() => cb(new Error('Oops!'))); + }); }; const response = h.response('body');