Skip to content

Commit

Permalink
remove logging & enable tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MBR-0001 committed Jan 1, 2021
1 parent b3adc88 commit 3bd831a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ class SQUnpacker extends EventEmitter {
* @param {Buffer} buffer
*/
readMessage(buffer) {
console.log(buffer.length);
let header = buffer.readInt32LE();
buffer = buffer.slice(4);

Expand Down
4 changes: 2 additions & 2 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ async function TestServer(ip) {
let failed = [];
let rv = {};

//rv.info = await query.getInfo().catch(() => failed.push("info"));
rv.info = await query.getInfo().catch(() => failed.push("info"));
rv.players = await query.getPlayers().catch(() => failed.push("players"));
//rv.rules = await query.getRules().catch(() => failed.push("rules"));
rv.rules = await query.getRules().catch(() => failed.push("rules"));

if (failed.length == 0) return rv;
else throw failed;
Expand Down

0 comments on commit 3bd831a

Please sign in to comment.