Skip to content

Commit

Permalink
Merge pull request #1103 from focusaurus/latest-zuul-appium
Browse files Browse the repository at this point in the history
saucelabs browser test tweaks
  • Loading branch information
kornelski committed Nov 8, 2016
2 parents aeca0e7 + ed2f49f commit e7a062a
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 11 deletions.
1 change: 1 addition & 0 deletions .zuul.yml
@@ -1,5 +1,6 @@
ui: mocha-bdd
server: ./test/support/server.js
tunnel_host: http://focusaurus.com
browsers:
- name: chrome
version: latest
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -20,7 +20,7 @@ test-cov: lib-cov
SUPERAGENT_COV=1 $(MAKE) test REPORTER=html-cov > coverage.html

test-browser:
./node_modules/.bin/zuul -- $(BROWSERTESTS)
SAUCE_APPIUM_VERSION=1.6 ./node_modules/.bin/zuul -- $(BROWSERTESTS)

test-browser-local:
./node_modules/.bin/zuul --local 4000 -- $(BROWSERTESTS)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -47,7 +47,7 @@
"mocha": "^3.1.2",
"should": "^11.1.1",
"should-http": "^0.0.4",
"zuul": "^3.10.1"
"zuul": "^3.11.1"
},
"browser": {
"./lib/node/index.js": "./lib/client.js",
Expand Down
2 changes: 1 addition & 1 deletion test/basic.js
Expand Up @@ -6,7 +6,7 @@ var assert = require('assert');
var request = require('../');

describe('request', function(){
this.timeout(10000);
this.timeout(20000);

describe('res.statusCode', function(){
it('should set statusCode', function(done){
Expand Down
2 changes: 1 addition & 1 deletion test/client/request.js
Expand Up @@ -2,7 +2,7 @@ var assert = require('assert');
var request = require('../../');

describe('request', function() {
this.timeout(10000);
this.timeout(20000);

it('request() error object', function(next) {
request('GET', '/error').end(function(err, res) {
Expand Down
2 changes: 1 addition & 1 deletion test/client/xdomain.js
Expand Up @@ -2,7 +2,7 @@ var assert = require('assert');
var request = require('../../');

describe('xdomain', function(){
this.timeout(10000);
this.timeout(20000);

// TODO (defunctzombie) I am not certain this actually forces xdomain request
// use localtunnel.me and tunnel127.com alias instead
Expand Down
2 changes: 1 addition & 1 deletion test/content-type.js
Expand Up @@ -5,7 +5,7 @@ var assert = require('assert');
var request = require('../');

describe('req.set("Content-Type", contentType)', function(){
this.timeout(10000);
this.timeout(20000);

it('should work with just the contentType component', function(done){
request
Expand Down
4 changes: 2 additions & 2 deletions test/json.js
Expand Up @@ -6,7 +6,7 @@ var assert = require('assert');
var request = require('../');

describe('req.send(Object) as "json"', function(){
this.timeout(10000);
this.timeout(20000);

it('should default to json', function(done){
request
Expand Down Expand Up @@ -119,7 +119,7 @@ describe('req.send(Object) as "json"', function(){
})

describe('res.body', function(){
this.timeout(10000);
this.timeout(20000);

describe('application/json', function(){
it('should parse the body', function(done){
Expand Down
14 changes: 13 additions & 1 deletion test/redirects.js
Expand Up @@ -6,7 +6,7 @@ var assert = require('assert');
var request = require('../');

describe('request', function(){
this.timeout(10000);
this.timeout(20000);
describe('on redirect', function(){
it('should retain header fields', function(done){
request
Expand Down Expand Up @@ -49,6 +49,10 @@ describe('request', function(){
res.headers.location.should.equal('/reply-method')
})
.end(function(err, res){
if (err) {
done(err);
return;
}
res.text.should.equal('method=get');
done();
})
Expand All @@ -67,6 +71,10 @@ describe('request', function(){
res.headers.location.should.equal('/reply-method')
})
.end(function(err, res){
if (err) {
done(err);
return;
}
res.text.should.equal('method=put');
done();
})
Expand All @@ -85,6 +93,10 @@ describe('request', function(){
res.headers.location.should.equal('/reply-method')
})
.end(function(err, res){
if (err) {
done(err);
return;
}
res.text.should.equal('method=put');
done();
})
Expand Down
2 changes: 1 addition & 1 deletion test/request.js
Expand Up @@ -5,7 +5,7 @@ var assert = require('assert');
var request = require('../');

describe('request', function() {
this.timeout(10000);
this.timeout(20000);

it('Request inheritance', function(){
assert(request.get(uri + '/') instanceof request.Request);
Expand Down
2 changes: 1 addition & 1 deletion test/use.js
Expand Up @@ -6,7 +6,7 @@ var assert = require('assert');
var request = require('../');

describe('request', function(){
this.timeout(10000);
this.timeout(20000);
describe('use', function(){
it('should use plugin success', function(done){
var now = '' + Date.now();
Expand Down

0 comments on commit e7a062a

Please sign in to comment.