mirror of
https://git.cloudron.io/cloudron/gitea-app.git
synced 2024-11-28 19:21:05 +00:00
check if env vars are set
This commit is contained in:
parent
74e09fa601
commit
24893502f5
1 changed files with 4 additions and 1 deletions
|
@ -23,7 +23,10 @@ describe('Application life cycle test', function () {
|
|||
this.timeout(0);
|
||||
var server, browser = new require('selenium-webdriver/firefox').Driver();
|
||||
|
||||
before(function () {
|
||||
before(function (done) {
|
||||
if (!process.env.USERNAME) return done(new Error('USERNAME env var not set'));
|
||||
if (!process.env.PASSWORD) return done(new Error('PASSWORD env var not set'));
|
||||
|
||||
var seleniumJar= require('selenium-server-standalone-jar');
|
||||
var SeleniumServer = require('selenium-webdriver/remote').SeleniumServer;
|
||||
server = new SeleniumServer(seleniumJar.path, { port: 4444 });
|
||||
|
|
Loading…
Reference in a new issue