Skip to content

Commit f7bb165

Browse files
committed
reduce ci timeout
1 parent da36ff7 commit f7bb165

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ env:
1313
jobs:
1414
check-ci:
1515
name: CI Self-Check
16-
timeout-minutes: 30
16+
timeout-minutes: 15
1717
runs-on: ubuntu-18.04
1818
steps:
1919
- uses: actions/checkout@v2
@@ -34,7 +34,7 @@ jobs:
3434
run: npm run ci:check
3535
check-lint:
3636
name: Lint
37-
timeout-minutes: 30
37+
timeout-minutes: 15
3838
runs-on: ubuntu-18.04
3939
steps:
4040
- uses: actions/checkout@v2
@@ -98,7 +98,7 @@ jobs:
9898
MONGODB_STORAGE_ENGINE: wiredTiger
9999
NODE_VERSION: 15.11.0
100100
name: ${{ matrix.name }}
101-
timeout-minutes: 30
101+
timeout-minutes: 15
102102
runs-on: ubuntu-18.04
103103
services:
104104
redis:
@@ -146,7 +146,7 @@ jobs:
146146
- name: Postgres 13, Postgis 3.1
147147
POSTGRES_IMAGE: postgis/postgis:13-3.1
148148
name: ${{ matrix.name }}
149-
timeout-minutes: 30
149+
timeout-minutes: 15
150150
runs-on: ubuntu-18.04
151151
services:
152152
redis:

spec/Parse.Push.spec.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
const request = require('../lib/request');
44

55
const pushCompleted = async pushId => {
6-
let result = await Parse.Push.getPushStatus(pushId);
6+
const query = new Parse.Query('_PushStatus');
7+
query.equalTo('objectId', pushId);
8+
let result = await query.first({ useMasterKey: true });
79
while (!(result && result.get('status') === 'succeeded')) {
8-
result = await Parse.Push.getPushStatus(pushId);
10+
result = await query.first({ useMasterKey: true });
911
}
1012
};
1113

spec/PushController.spec.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ const successfulIOS = function (body, installations) {
2727
};
2828

2929
const pushCompleted = async pushId => {
30-
let result = await Parse.Push.getPushStatus(pushId);
30+
const query = new Parse.Query('_PushStatus');
31+
query.equalTo('objectId', pushId);
32+
let result = await query.first({ useMasterKey: true });
3133
while (!(result && result.get('status') === 'succeeded')) {
32-
result = await Parse.Push.getPushStatus(pushId);
34+
result = await query.first({ useMasterKey: true });
3335
}
3436
};
3537

0 commit comments

Comments
 (0)