Skip to content

Commit 68d38b7

Browse files
committed
chore: remove done callback
1 parent d59700a commit 68d38b7

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

test/src/tests-batchUploader_2.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ describe('batch uploader', () => {
113113

114114
// TODO: Investigate workflow with unshift vs push
115115
// https://go.mparticle.com/work/SQDSDKS-5165
116-
it.skip('should keep batches in sequence for future retries when an HTTP 500 error occurs', (done) => {
116+
it.skip('should keep batches in sequence for future retries when an HTTP 500 error occurs', () => {
117117
// If batches cannot upload, they should be added back to the Batch Queue
118118
// in the order they were created so they can be retransmitted.
119119

@@ -202,14 +202,12 @@ describe('batch uploader', () => {
202202
expect((batchQueue[2].events[2] as CustomEvent).data.event_name).to.equal(
203203
'Test Event 6'
204204
);
205-
206-
done();
207205
}, 0);
208206
});
209207

210208
// TODO: Investigate workflow with unshift vs push
211209
// https://go.mparticle.com/work/SQDSDKS-5165
212-
it.skip('should keep and retry batches in sequence if the transmission fails midway', (done) => {
210+
it.skip('should keep and retry batches in sequence if the transmission fails midway', () => {
213211
// First request is successful, subsequent requests fail
214212
fetchMock.post(urls.events, 200, {
215213
overwriteRoutes: false,
@@ -283,8 +281,6 @@ describe('batch uploader', () => {
283281
expect((batchQueue[1].events[2] as CustomEvent).data.event_name).to.equal(
284282
'Test Event 6'
285283
);
286-
287-
done();
288284
}, 0);
289285
});
290286
});

0 commit comments

Comments
 (0)