Skip to content

Commit bbdd450

Browse files
committed
Remove test suite console.log calls
1 parent b805a3b commit bbdd450

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

test/sodaUtil.js

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,28 +43,19 @@ sodaUtil.cleanup = async function() {
4343

4444
let cNames = await sd.getCollectionNames();
4545
if (cNames.length > 0) {
46-
console.log("existing collections: ");
47-
console.log(cNames);
48-
4946
for (let i = 0; i < cNames.length; i++) {
5047
let coll = await sd.openCollection(cNames[i]);
51-
let res = await coll.drop();
52-
if (res.dropped) {
53-
console.log("Succeed to drop collection", cNames[i]);
54-
} else {
55-
console.log("Fail to drop collection", cNames[i]);
56-
}
48+
await coll.drop();
5749
}
5850
}
59-
6051
} catch (err) {
61-
console.log('Error in processing:\n', err);
52+
console.error('Error in processing:\n', err);
6253
} finally {
6354
if (conn) {
6455
try {
6556
await conn.close();
6657
} catch (err) {
67-
console.log('Error in closing connection:\n', err);
58+
console.error('Error in closing connection:\n', err);
6859
}
6960
}
7061
}

0 commit comments

Comments
 (0)