Skip to content
This repository has been archived by the owner on Apr 14, 2022. It is now read-only.

Commit

Permalink
Updated some test code for node v0.8.*
Browse files Browse the repository at this point in the history
  • Loading branch information
csainty committed Jul 11, 2012
1 parent 08f1828 commit 986d530
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions utils/testinfo.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
var fs = require('fs')
, path = require('path')
, credentials
, database
;
Expand All @@ -14,7 +13,7 @@ if (process.env.RAVENDB_TEST_CONNSTRING) {
// Testing a local server
credentials= '';
database= '';
if (path.existsSync(process.env.RAVENDB_TEST_DIR + '/authentication.config')) {
if (fs.existsSync(process.env.RAVENDB_TEST_DIR + '/authentication.config')) {
var auth = fs.readFileSync(process.env.RAVENDB_TEST_DIR + '/authentication.config', 'utf8');
credentials= 'User=' + auth.match(/Username: (.*)/)[1] + ';Password=' + auth.match(/Password: (.*)/)[1] + ';';
}
Expand Down

0 comments on commit 986d530

Please sign in to comment.