From 6753e1bba6adc9125b2afc1e253f97fd7c045e5b Mon Sep 17 00:00:00 2001 From: Ziggy Jonsson Date: Sun, 29 Mar 2020 06:38:49 -0400 Subject: [PATCH] use safe-buffer (compatibility with older node versions) --- test/unit/connection/test-auth-switch-clear-insecure.js | 1 + test/unit/connection/test-auth-switch-clear-secure.js | 1 + 2 files changed, 2 insertions(+) diff --git a/test/unit/connection/test-auth-switch-clear-insecure.js b/test/unit/connection/test-auth-switch-clear-insecure.js index c054331bb..b8fc20f8e 100644 --- a/test/unit/connection/test-auth-switch-clear-insecure.js +++ b/test/unit/connection/test-auth-switch-clear-insecure.js @@ -1,4 +1,5 @@ var assert = require('assert'); +var Buffer = require('safe-buffer').Buffer; var common = require('../../common'); var connection = common.createConnection({ port : common.fakeServerPort, diff --git a/test/unit/connection/test-auth-switch-clear-secure.js b/test/unit/connection/test-auth-switch-clear-secure.js index edb247a19..08f420eda 100644 --- a/test/unit/connection/test-auth-switch-clear-secure.js +++ b/test/unit/connection/test-auth-switch-clear-secure.js @@ -1,4 +1,5 @@ var assert = require('assert'); +var Buffer = require('safe-buffer').Buffer; var common = require('../../common'); var connection = common.createConnection({ port : common.fakeServerPort,