Merge pull request #522 from UziTech/update-uuid

update uuid and tests to work with windows
This commit is contained in:
James Sumners 2019-08-26 12:12:34 -04:00 committed by GitHub
commit f1acfee9de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 7 deletions

View File

@ -40,10 +40,10 @@
"verror": "^1.8.1"
},
"devDependencies": {
"node-uuid": "^1.4.7",
"faucet": "0.0.1",
"istanbul": "^0.4.5",
"tape": "^4.6.2"
"tape": "^4.6.2",
"uuid": "^3.3.3"
},
"scripts": {
"report": "./node_modules/.bin/istanbul report html && open ./coverage/lcov-report/index.html",

View File

@ -3,7 +3,7 @@
var logger = Object.create(require('abstract-logging'));
var test = require('tape').test;
var uuid = require('node-uuid');
var uuid = require('uuid');
var vasync = require('vasync');
var util = require('util');
@ -12,7 +12,7 @@ var util = require('util');
var BIND_DN = 'cn=root';
var BIND_PW = 'secret';
var SOCKET = '/tmp/.' + uuid();
var SOCKET = process.platform === 'win32' ? '\\\\.\\pipe\\' + uuid() : '/tmp/.' + uuid();
var SUFFIX = 'dc=test';

View File

@ -1,14 +1,14 @@
// Copyright 2011 Mark Cavage, Inc. All rights reserved.
var test = require('tape').test;
var uuid = require('node-uuid');
var uuid = require('uuid');
var ldap = require('../lib/index');
///--- Globals
var SOCKET = '/tmp/.' + uuid();
var SOCKET = process.platform === 'win32' ? '\\\\.\\pipe\\' + uuid() : '/tmp/.' + uuid();
var SUFFIX = 'dc=' + uuid();
var client;

View File

@ -3,7 +3,7 @@
var logger = Object.create(require('abstract-logging'));
var test = require('tape').test;
var uuid = require('node-uuid');
var uuid = require('uuid');
var vasync = require('vasync');