Skip to content

Commit 5c5cd42

Browse files
committed
not running 404 on prs in travis
since it needs corpus url to be defined
1 parent 7b71926 commit 5c5cd42

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

test/lib/corpus-spec.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,10 @@ describe("corpus lib", function() {
263263
});
264264

265265
it("should return 404 error if usermask has no matching corpora", function(done) {
266+
if (process.env.TRAVIS_PULL_REQUEST && !config.corpus.url) {
267+
return this.skip();
268+
}
269+
266270
getCorpusMaskFromTitleAsUrl({
267271
username: "lingllama"
268272
}, "notacorpus", function(err) {

0 commit comments

Comments
 (0)