Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5eec3c4

Browse files
committedFeb 21, 2021
Ensure pushStatus is properly running (#7213)
* Ensure pushStatus is properly running * remove duplicate test
1 parent e6680ef commit 5eec3c4

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed
 

‎spec/PushController.spec.js

-13
Original file line numberDiff line numberDiff line change
@@ -79,19 +79,6 @@ describe('PushController', () => {
7979
done();
8080
});
8181

82-
it('can throw on validateDeviceType when single invalid device type is set', done => {
83-
// Make query condition
84-
const where = {
85-
deviceType: 'osx',
86-
};
87-
const validPushTypes = ['ios', 'android'];
88-
89-
expect(function () {
90-
validatePushType(where, validPushTypes);
91-
}).toThrow();
92-
done();
93-
});
94-
9582
it('can get expiration time in string format', done => {
9683
// Make mock request
9784
const timeStr = '2015-03-19T22:05:08Z';

‎src/StatusHandler.js

-2
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,6 @@ export function pushStatusHandler(config, existingObjectId) {
295295
}
296296
);
297297
}
298-
299-
// indicate this batch is complete
300298
incrementOp(update, 'count', -1);
301299
update.status = 'running';
302300

0 commit comments

Comments
 (0)
Please sign in to comment.