Skip to content

Commit

Permalink
Ensure pushStatus is properly running (#7213)
Browse files Browse the repository at this point in the history
* Ensure pushStatus is properly running

* remove duplicate test
  • Loading branch information
dplewis committed Feb 21, 2021
1 parent e6680ef commit 5eec3c4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
13 changes: 0 additions & 13 deletions spec/PushController.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,19 +79,6 @@ describe('PushController', () => {
done();
});

it('can throw on validateDeviceType when single invalid device type is set', done => {
// Make query condition
const where = {
deviceType: 'osx',
};
const validPushTypes = ['ios', 'android'];

expect(function () {
validatePushType(where, validPushTypes);
}).toThrow();
done();
});

it('can get expiration time in string format', done => {
// Make mock request
const timeStr = '2015-03-19T22:05:08Z';
Expand Down
2 changes: 0 additions & 2 deletions src/StatusHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,6 @@ export function pushStatusHandler(config, existingObjectId) {
}
);
}

// indicate this batch is complete
incrementOp(update, 'count', -1);
update.status = 'running';

Expand Down

0 comments on commit 5eec3c4

Please sign in to comment.