Skip to content
Snippets Groups Projects
Commit 42022dc0 authored by Michael Staff Larsen's avatar Michael Staff Larsen
Browse files

Update persondao.test.js

parent 40fdf896
No related branches found
No related tags found
No related merge requests found
Pipeline #50042 canceled
...@@ -4,6 +4,7 @@ const PersonDao = require("./persondao.js"); ...@@ -4,6 +4,7 @@ const PersonDao = require("./persondao.js");
const runsqlfile = require("./runsqlfile.js"); const runsqlfile = require("./runsqlfile.js");
// GitLab CI Pool // GitLab CI Pool
/*
var pool = mysql.createPool({ var pool = mysql.createPool({
connectionLimit: 1, connectionLimit: 1,
host: "mysql", host: "mysql",
...@@ -12,8 +13,19 @@ var pool = mysql.createPool({ ...@@ -12,8 +13,19 @@ var pool = mysql.createPool({
database: "supertestdb", database: "supertestdb",
debug: false, debug: false,
multipleStatements: true multipleStatements: true
});*/
var pool = mysql.createPool({
connectionLimit: 2,
host: "mysql.stud.ntnu.no",
user: "michaesl",
password: "946ujay946UJAY",
database: "michaesl_oblig5",
debug: false,
multipleStatements: true
}); });
let personDao = new PersonDao(pool); let personDao = new PersonDao(pool);
beforeAll(done => { beforeAll(done => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment