Skip to content

Commit 5d607da

Browse files
committed
increase timeouts in tests
1 parent f8766c9 commit 5d607da

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

test/map/MapEntryProcessorTest.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ describe('Entry Processor', function() {
7373
});
7474

7575
it('executeOnEntries should modify entries', function () {
76+
this.timeout(4000);
7677
return map.executeOnEntries(new SimpleEntryProcessor()).then(function() {
7778
return map.entrySet();
7879
}).then(function (entries) {
@@ -83,6 +84,7 @@ describe('Entry Processor', function() {
8384
});
8485

8586
it('executeOnEntries should return modified entries', function () {
87+
this.timeout(4000);
8688
return map.executeOnEntries(new SimpleEntryProcessor()).then(function(entries) {
8789
expect(entries).to.have.lengthOf(MAP_SIZE);
8890
expect(entries.every(function(entry) {
@@ -92,6 +94,7 @@ describe('Entry Processor', function() {
9294
});
9395

9496
it('executeOnEntries with predicate should modify entries', function () {
97+
this.timeout(4000);
9598
return map.executeOnEntries(new SimpleEntryProcessor(), Predicates.regex('this', '^[01]$')).then(function() {
9699
return map.getAll(["0", "1", "2"]);
97100
}).then(function (entries) {
@@ -100,6 +103,7 @@ describe('Entry Processor', function() {
100103
});
101104

102105
it('executeOnEntries with predicate should return modified entries', function () {
106+
this.timeout(4000);
103107
return map.executeOnEntries(new SimpleEntryProcessor(), Predicates.regex('this', '^[01]$')).then(function(entries) {
104108
expect(entries).to.have.lengthOf(2);
105109
expect(entries.every(function(entry) {
@@ -109,12 +113,14 @@ describe('Entry Processor', function() {
109113
});
110114

111115
it('executeOnKey should return modified value', function() {
116+
this.timeout(4000);
112117
return map.executeOnKey('4', new SimpleEntryProcessor()).then(function (retVal) {
113118
return expect(retVal).to.equal('4processed');
114119
});
115120
});
116121

117122
it('executeOnKey should modify the value', function() {
123+
this.timeout(4000);
118124
return map.executeOnKey('4', new SimpleEntryProcessor()).then(function() {
119125
return map.get('4');
120126
}).then(function (value) {
@@ -123,12 +129,14 @@ describe('Entry Processor', function() {
123129
});
124130

125131
it('executeOnKeys should return modified entries', function() {
132+
this.timeout(4000);
126133
return map.executeOnKeys(['4', '5'], new SimpleEntryProcessor()).then(function (entries) {
127134
return expect(entries).to.deep.have.members([['4', '4processed'], ['5', '5processed']]);
128135
});
129136
});
130137

131138
it('executeOnKeys should modify the entries', function() {
139+
this.timeout(4000);
132140
return map.executeOnKeys(['4', '5'], new SimpleEntryProcessor()).then(function() {
133141
return map.getAll(['4', '5']);
134142
}).then(function (entries) {
@@ -137,6 +145,7 @@ describe('Entry Processor', function() {
137145
});
138146

139147
it('executeOnKeys with empty array should return empty array', function() {
148+
this.timeout(4000);
140149
return map.executeOnKeys([], new SimpleEntryProcessor()).then(function (entries) {
141150
return expect(entries).to.have.lengthOf(0);
142151
});

test/map/MapPartitionAwareTest.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ describe('Map Partition Aware', function() {
4040

4141
before(function() {
4242
expect(memberCount, 'This test should have at least 2 members.').to.be.at.least(2);
43-
this.timeout(20000);
43+
this.timeout(30000);
4444
return Controller.createCluster(null, null).then(function(c) {
4545
cluster = c;
4646
for (var i = 0; i < memberCount; i++) {
@@ -56,7 +56,7 @@ describe('Map Partition Aware', function() {
5656
});
5757

5858
after(function() {
59-
this.timeout(20000);
59+
this.timeout(30000);
6060
client.shutdown();
6161
return Controller.shutdownCluster(cluster.id);
6262
});
@@ -70,7 +70,7 @@ describe('Map Partition Aware', function() {
7070
});
7171

7272
it('put', function() {
73-
this.timeout(10000);
73+
this.timeout(20000);
7474
return _fillMap(map, numOfEntries).then(function(newVal) {
7575
var promises = members.map(function(member, index) {
7676
return Controller.executeOnController(cluster.id, getLocalMapStats(index), 1);

0 commit comments

Comments
 (0)