Skip to content

Commit

Permalink
nodelint.js fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
akzhan authored and Sannis committed Sep 9, 2010
1 parent 9f54117 commit 5b5e0d1
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 12 deletions.
2 changes: 1 addition & 1 deletion tools/run-check-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function getBindingsClasses() {
regex_class_methods.lastIndex += 1;
}

classes.push({name: class_name, properties_getters: class_properties_getters, properties_setters: class_properties_setters, methods: class_methods,});
classes.push({name: class_name, properties_getters: class_properties_getters, properties_setters: class_properties_setters, methods: class_methods});
}
}

Expand Down
17 changes: 12 additions & 5 deletions tools/run-nested-connect-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,28 @@ conn.closeSync();
sys.debug("After second closeSync()");

conn.connect(cfg.host, cfg.user, cfg.password, function (err) {
if (err) throw(err);
if (err)
{
throw err;
}
sys.debug("In first connect()");
conn.closeSync();
sys.debug("After first connect().closeSync()");

conn.connect(cfg.host, cfg.user, cfg.password, function (err) {
if (err) throw(err);
if (err)
{
throw err;
}
sys.debug("In second connect()");
conn.closeSync();
sys.debug("After second connect().closeSync()");

conn.connect(cfg.host, cfg.user, cfg.password, function (err) {
if (err) throw(err);
if (err)
{
throw err;
}
sys.debug("In third connect()");
conn.closeSync();
sys.debug("After third connect().closeSync()");
Expand All @@ -55,5 +64,3 @@ conn.connect(cfg.host, cfg.user, cfg.password, function (err) {

sys.debug("Finish");



18 changes: 13 additions & 5 deletions tools/run-nested-fetch-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,30 @@ res = conn.querySync("SHOW TABLES;");
sys.debug("After first querySync()");

res.fetchAll(function (err, tables) {
if (err) throw(err);
if (err)
{
throw err;
}

sys.debug("In first fetchAll()");
res = conn.querySync("SHOW TABLES;");
sys.debug("After second querySync()");

res.fetchAll(function (err, tables) {
if (err) throw(err);

if (err)
{
throw err;
}

sys.debug("In second fetchAll()");
res = conn.querySync("SHOW TABLES;");
sys.debug("After second querySync()");

res.fetchAll(function (err, tables) {
if (err) throw(err);

if (err)
{
throw err;
}
sys.debug("In third fetchAll()");
});
});
Expand Down
2 changes: 1 addition & 1 deletion tools/tests/test-1-class-mysqlconn.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function MultiRealQueryAndNextAndMoreSync(test) {

conn.closeSync();

test.done()
test.done();
}

function RealQueryAndUseAndStoreResultSync(test) {
Expand Down

0 comments on commit 5b5e0d1

Please sign in to comment.