diff --git a/test/unit/connection/test-auth-switch-clear-insecure.js b/test/unit/connection/test-auth-switch-clear-insecure.js index c054331bb..c30361902 100644 --- a/test/unit/connection/test-auth-switch-clear-insecure.js +++ b/test/unit/connection/test-auth-switch-clear-insecure.js @@ -26,7 +26,7 @@ server.on('connection', function(incomingConnection) { incomingConnection.on('clientAuthentication', function () { this.authSwitchRequest({ authMethodName : 'mysql_clear_password', - authMethodData : Buffer.alloc(0) + authMethodData : Buffer.from('') }); }); diff --git a/test/unit/connection/test-auth-switch-clear-secure.js b/test/unit/connection/test-auth-switch-clear-secure.js index edb247a19..2b553feb0 100644 --- a/test/unit/connection/test-auth-switch-clear-secure.js +++ b/test/unit/connection/test-auth-switch-clear-secure.js @@ -32,7 +32,7 @@ server.on('connection', function(incomingConnection) { incomingConnection.on('clientAuthentication', function () { this.authSwitchRequest({ authMethodName : 'mysql_clear_password', - authMethodData : Buffer.alloc(0) + authMethodData : Buffer.from('') }); });