Skip to content

Commit e0990d8

Browse files
Merge pull request #83 from garyslootskiy/master
Adjust tests for Travis
2 parents 1da832d + 5028289 commit e0990d8

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

test/subSuites/httpTest.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -90,20 +90,19 @@ module.exports = () => {
9090
describe("httpTest Server", () => {
9191

9292
before("CLEAR DB", (done) => {
93-
chai
94-
.request("http://localhost:3000")
93+
chai.request("http://localhost:3000")
9594
.get("/clear")
96-
.end((err, res) => {
97-
done();
95+
.end(function(err, res) {
96+
done(); // <= Call done to signal callback end
9897
});
9998
});
10099

101100
after("CLEAR DB", (done) => {
102-
chai
103-
.request("http://localhost:3000")
101+
chai.request("http://localhost:3000")
104102
.get("/clear")
105-
.end((err, res) => {
106-
done();
103+
.send()
104+
.end(function(err, res) {
105+
done(); // <= Call done to signal callback end
107106
});
108107
});
109108

0 commit comments

Comments
 (0)