Skip to content

Commit 3aece40

Browse files
authored
Merge pull request #165 from quicksave-interactive/v1
Fix travis-ci continuous integration build check
2 parents 2bc0fa2 + 3a29943 commit 3aece40

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ install:
3737

3838
before_script:
3939
- sls dynamodb install
40-
- sls dynamodb start -p 3000 &
40+
- sls offline start &
41+
- sleep 15
4142
- cd ..
4243
- cd ..
4344
- npm run test

test/indexTest.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ describe("Port function",function(){
1414
assert(typeof myport, "number");
1515
});
1616

17-
it("Port value should be >= 0 and < 65536",function () {
18-
http.get(`http://localhost:${dataApp.prototype.port}`, function (response) {
19-
assert.equal(response.statusCode, 200);
17+
it("Port value should be >= 0 and < 65536",function(done){
18+
http.get(`http://localhost:${dataApp.prototype.port}/shell/`, function (response) {
19+
assert.equal(response.statusCode, 200);
20+
done();
2021
});
2122
});
2223
});

test/testTable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ describe("Check Table operations", function() {
4646
if(err){
4747
should.exist(err);
4848
} else {
49-
should.not.exist(data);
49+
expect(data.TableNames).to.be.empty;
5050
}
5151
done();
5252
});

0 commit comments

Comments
 (0)