Skip to content

Commit

Permalink
Merge pull request #840 from clavin/increase-test-timeout-scalars
Browse files Browse the repository at this point in the history
Increase test timeout multipliers
  • Loading branch information
clavin authored Jul 26, 2019
2 parents 8d56368 + a7f44c7 commit f18a3ba
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions packages/interactive-messages/src/adapter.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ describe('SlackMessageAdapter', function () {
replacement
);
const timeout = this.adapter.syncResponseTimeout;
this.timeout(timeout * 1.5);
this.timeout(timeout * 2);
this.adapter.action(requestPayload.callback_id, function (payload, respond) {
assert.deepEqual(payload, requestPayload);
assert.isFunction(respond);
Expand All @@ -525,7 +525,7 @@ describe('SlackMessageAdapter', function () {
let dispatchResponse;
const requestPayload = this.requestPayload;
const timeout = this.adapter.syncResponseTimeout;
this.timeout(timeout * 1.5);
this.timeout(timeout * 2);
this.adapter.action(requestPayload.callback_id, function () {
return delayed(timeout * 1.1, undefined, 'test error');
});
Expand Down Expand Up @@ -554,7 +554,7 @@ describe('SlackMessageAdapter', function () {
replacement
);
const timeout = this.adapter.syncResponseTimeout;
this.timeout(timeout * 1.5);
this.timeout(timeout * 2);
this.adapter.action(requestPayload.callback_id, function (payload, respond) {
delayed(timeout * 1.1)
.then(function () {
Expand All @@ -580,7 +580,7 @@ describe('SlackMessageAdapter', function () {
secondReplacement
);
const timeout = this.adapter.syncResponseTimeout;
this.timeout(timeout * 1.5);
this.timeout(timeout * 2);
this.adapter.action(requestPayload.callback_id, function (payload, respond) {
delayed(timeout * 1.2)
.then(function () {
Expand All @@ -607,7 +607,7 @@ describe('SlackMessageAdapter', function () {
secondReplacement
);
const timeout = this.adapter.syncResponseTimeout;
this.timeout(timeout * 1.5);
this.timeout(timeout * 2);
this.adapter.action(requestPayload.callback_id, function (payload, respond) {
delayed(timeout * 1.1)
.then(function () {
Expand Down Expand Up @@ -637,7 +637,7 @@ describe('SlackMessageAdapter', function () {
const requestPayload = this.requestPayload;
const replacement = this.replacement;
const timeout = this.adapter.syncResponseTimeout;
this.timeout(timeout * 1.5);
this.timeout(timeout * 2);
this.adapter.action(requestPayload.callback_id, function (payload, respond) {
assert.deepEqual(payload, requestPayload);
assert.isFunction(respond);
Expand All @@ -651,7 +651,7 @@ describe('SlackMessageAdapter', function () {
let dispatchResponse;
const requestPayload = this.requestPayload;
const timeout = this.adapter.syncResponseTimeout;
this.timeout(timeout * 1.5);
this.timeout(timeout * 2);
this.adapter.action(requestPayload.callback_id, function () {
return delayed(timeout * 1.1, undefined, 'test error');
});
Expand Down Expand Up @@ -716,7 +716,7 @@ describe('SlackMessageAdapter', function () {
const requestPayload = this.requestPayload;
const submissionResponse = this.submissionResponse;
const timeout = this.adapter.syncResponseTimeout;
this.timeout(timeout * 1.5);
this.timeout(timeout * 2);
this.adapter.action(requestPayload.callback_id, function (payload, respond) {
assert.deepEqual(payload, requestPayload);
assert.isFunction(respond);
Expand Down Expand Up @@ -747,7 +747,7 @@ describe('SlackMessageAdapter', function () {
followUp
);
const timeout = this.adapter.syncResponseTimeout;
this.timeout(timeout * 1.5);
this.timeout(timeout * 2);
this.adapter.action(requestPayload.callback_id, function (payload, respond) {
delayed(timeout * 1.1)
.then(function () {
Expand Down Expand Up @@ -817,7 +817,7 @@ describe('SlackMessageAdapter', function () {
const requestPayload = this.requestPayload;
const optionsResponse = this.optionsResponse;
const timeout = this.adapter.syncResponseTimeout;
this.timeout(timeout * 1.5);
this.timeout(timeout * 2);
this.adapter.options(requestPayload.callback_id, function (payload, secondArg) {
assert.deepEqual(payload, requestPayload);
assert.isUndefined(secondArg);
Expand Down

0 comments on commit f18a3ba

Please sign in to comment.