Skip to content

Commit

Permalink
adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
MBR-0001 committed Dec 27, 2020
1 parent 2b6e9ad commit 693faa6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@ class SourceQuery {
* @param {boolean} autoclose
*/
constructor(address, port, timeout = 1000, autoclose = true) {
this.address = address;
this.port = port;
this.timeout = timeout;
this.autoclose = autoclose;
this.address = String(address);
this.port = Number(port);
this.timeout = Number(timeout);
this.autoclose = Boolean(autoclose);

this.queries = 0;

Expand Down
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ let servers = [

async function TestServer(ip) {
let split = ip.split(":");
const query = new SourceQuery(split[0], split[1], 5e3);
const query = new SourceQuery(split[0], split[1], process.env.CI_TIMEOUT || 5e3);

let failed = [];
let rv = {};
Expand Down

0 comments on commit 693faa6

Please sign in to comment.