summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Van Doorn <vandoorn.nick@gmail.com>2019-01-21 19:09:24 -0800
committerNick Van Doorn <vandoorn.nick@gmail.com>2019-01-21 19:09:24 -0800
commitba259bf74458a983f9e882209a4f051d8b2c2cf8 (patch)
treef38fb257f78682682eed13ad10b31266849b64cc
parent5d1fd7ce47de35464e6a4a929ec7f094cd99326c (diff)
Adjust port
-rw-r--r--server/src/server.test.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/server.test.ts b/server/src/server.test.ts
index 566293a..2bd2e45 100644
--- a/server/src/server.test.ts
+++ b/server/src/server.test.ts
@@ -8,7 +8,7 @@ import process from "process";
// so fuck it for now
import { dbFactory, DatabaseConnection } from "../../client/src";
-const port = +(process.env.PORT || 5000);
+const port = +(process.env.PORT || 5005);
const httpPort = port;
const wsPort = port + 1;
@@ -20,7 +20,7 @@ describe("Server module", async () => {
wsPort,
logger: console.log
});
- db = dbFactory({ httpPort, wsPort, url: "localhost" });
+ db = dbFactory({ wsPort, httpUrl: `http://localhost:${httpPort}` });
await db.init();
});
test("it should work", async () => {