Skip to content

Commit ebbf184

Browse files
committed
Update flaky integration tests
1 parent 97a5b04 commit ebbf184

File tree

4 files changed

+10
-28
lines changed

4 files changed

+10
-28
lines changed

test/integration/sanity/head-request.test.js

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,8 @@ describe('HEAD requests', function () {
88
collection: {
99
item: [{
1010
request: {
11-
url: 'http://google.com',
12-
method: 'HEAD',
13-
body: {
14-
mode: 'formdata',
15-
formdata: []
16-
}
17-
}
18-
}, {
19-
request: {
20-
url: 'http://github.com',
21-
method: 'HEAD',
22-
body: {
23-
mode: 'formdata',
24-
formdata: []
25-
}
11+
url: global.servers.http,
12+
method: 'HEAD'
2613
}
2714
}]
2815
}
@@ -35,18 +22,13 @@ describe('HEAD requests', function () {
3522
it('should have completed the HEAD requests successfully', function () {
3623
expect(testrun).to.be.ok;
3724
expect(testrun).to.nested.include({
38-
'request.calledTwice': true
25+
'request.calledOnce': true
3926
});
4027

4128
expect(testrun.request.getCall(0)).to.nested.include({
4229
'args[0]': null,
4330
'args[2].code': 200
4431
});
45-
46-
expect(testrun.request.getCall(1)).to.nested.include({
47-
'args[0]': null,
48-
'args[2].code': 200
49-
});
5032
});
5133

5234
it('should have completed the run', function () {

test/integration/sanity/proxy-http.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ var ProxyConfigList = require('postman-collection').ProxyConfigList,
88
var proxyPort,
99
proxyHost,
1010
proxyUrlForHttpRequest,
11-
sampleHttpUrl = 'http://google.com',
12-
sampleHttpsUrl = 'https://google.com';
11+
sampleHttpUrl = 'http://postman.com',
12+
sampleHttpsUrl = 'https://postman.com';
1313

1414
before(function (done) {
1515
proxyHost = 'localhost';

test/integration/sanity/response-size.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ describe('response size', function () {
99
item: [{
1010
request: 'https://postman-echo.com/get'
1111
}, {
12-
request: 'https://google.com/'
12+
request: 'https://httpbin.org/get'
1313
}]
1414
}
1515
}, function (err, results) {

test/integration/sanity/systemproxy.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ var expect = require('chai').expect,
99
proxyUrlForHttpRequest,
1010
systemProxyCalled = false,
1111
proxyHost = 'localhost',
12-
sampleHttpUrl = 'http://google.com',
13-
sampleHttpsUrl = 'https://google.com';
12+
sampleHttpUrl = 'http://postman.com',
13+
sampleHttpsUrl = 'https://postman.com';
1414

1515
before(function (done) {
1616
proxyPort = global.servers.proxy.split(':')[2];
@@ -119,8 +119,8 @@ var expect = require('chai').expect,
119119
proxyUrlForHttpRequest,
120120
proxyHost = 'localhost',
121121
systemProxyCalled = false,
122-
sampleHttpUrl = 'http://google.com',
123-
sampleHttpsUrl = 'https://google.com';
122+
sampleHttpUrl = 'http://postman.com',
123+
sampleHttpsUrl = 'https://postman.com';
124124

125125
before(function (done) {
126126
globalProxyPort = global.servers.proxy.split(':')[2];

0 commit comments

Comments
 (0)