Merge pull request #522 from UziTech/update-uuid
update uuid and tests to work with windows
This commit is contained in:
commit
f1acfee9de
|
@ -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",
|
||||
|
|
|
@ -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';
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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');
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue