Fix up smoke tests

This commit is contained in:
James Allen
2014-02-13 09:33:39 +00:00
parent c83b03e93f
commit 5dfe961d63
4 changed files with 18 additions and 15 deletions

View File

@@ -2,9 +2,9 @@ chai = require("chai")
chai.should()
expect = chai.expect
request = require "request"
Settings = require "../../../app/js/Settings"
Settings = require "settings-sharelatex"
buildUrl = (path) -> "http://localhost:#{Settings.listen.port}/#{path}"
buildUrl = (path) -> "http://#{Settings.internal.clsi.host}:#{Settings.internal.clsi.port}/#{path}"
describe "Running a compile", ->
before (done) ->

View File

@@ -9,10 +9,10 @@
request = require("request");
Settings = require("../../../app/js/Settings");
Settings = require("settings-sharelatex");
buildUrl = function(path) {
return "http://localhost:" + Settings.listen.port + "/" + path;
return "http://" + Settings.internal.clsi.host + ":" + Settings.internal.clsi.port + "/" + path;
};
describe("Running a compile", function() {
@@ -34,6 +34,9 @@
_this.error = error;
_this.response = response;
_this.body = body;
if (_this.error != null) {
throw _this.error;
}
return done();
});
});