Skip to content

Commit

Permalink
Skip connection failure test on Travis (always connects)
Browse files Browse the repository at this point in the history
  • Loading branch information
notheotherben committed Apr 22, 2015
1 parent a8a412c commit af0534c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
11 changes: 7 additions & 4 deletions test/Core.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/Core.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions test/Core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,12 @@ describe("Core",() => {

describe("connect",() => {
var core: Iridium.Core;
it("should return a rejection if the connection fails",() => {
core = new Iridium.Core("mongodb://0.0.0.0/test");
return chai.expect(core.connect()).to.be.rejected;
});
if (!process.env.CI)
it("should return a rejection if the connection fails",() => {
core = new Iridium.Core("mongodb://0.0.0.0/test");
return chai.expect(core.connect()).to.be.rejected;
});
else it.skip("should return a rejection if the connection fails");

it("should open a connection to the correct database and return the core",() => {
core = new Iridium.Core("mongodb://localhost/test");
Expand Down

0 comments on commit af0534c

Please sign in to comment.