Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DatabaseTest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Shanshan Qu
DatabaseTest
Commits
78acb67c
Commit
78acb67c
authored
6 years ago
by
Shanshan Qu
Browse files
Options
Downloads
Patches
Plain Diff
fixed test
parent
4bf9fb45
Branches
master
No related tags found
No related merge requests found
Pipeline
#22866
passed
6 years ago
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
dao/persondao.test.js
+4
-4
4 additions, 4 deletions
dao/persondao.test.js
with
4 additions
and
4 deletions
dao/persondao.test.js
+
4
−
4
View file @
78acb67c
...
...
@@ -3,7 +3,7 @@ var mysql = require("mysql");
const
PersonDao
=
require
(
"
./persondao.js
"
);
const
runsqlfile
=
require
(
"
./runsqlfile.js
"
);
/
*
GitLab CI Pool
/
/
GitLab CI Pool
var
pool
=
mysql
.
createPool
({
connectionLimit
:
1
,
host
:
"
mysql
"
,
...
...
@@ -12,9 +12,9 @@ var pool = mysql.createPool({
database
:
"
supertestdb
"
,
debug
:
false
,
multipleStatements
:
true
});
*/
});
/
/
Test with my db
/
*
Test with my db
var pool = mysql.createPool({
connectionLimit: 1,
host: "mysql.stud.iie.ntnu.no",
...
...
@@ -23,7 +23,7 @@ var pool = mysql.createPool({
database: "shanshaq",
debug: false,
multipleStatements: true
});
});
*/
let
personDao
=
new
PersonDao
(
pool
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment