Skip to content

Commit 2c4bed9

Browse files
committed
Fixed bug again
1 parent 70ee6c1 commit 2c4bed9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/storage/src/implementation/request.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ class NetworkRequest<I extends ConnectionType, O> implements Request<O> {
120120
const hitServer = connection.getErrorCode() === ErrorCode.NO_ERROR;
121121
const status = connection.getStatus();
122122
if (
123-
(!hitServer ||
124-
isRetryStatusCode(status, this.additionalRetryCodes_)) &&
125-
this.retry
123+
!hitServer ||
124+
(isRetryStatusCode(status, this.additionalRetryCodes_) &&
125+
this.retry)
126126
) {
127127
const wasCanceled = connection.getErrorCode() === ErrorCode.ABORT;
128128
backoffCallback(

packages/storage/test/unit/task.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ describe('Firebase Storage > Upload Task', () => {
726726
expect(clock.countTimers()).to.eq(0);
727727
clock.restore();
728728
});
729-
it.only('does not error when pausing inflight request', async () => {
729+
it('does not error when pausing inflight request', async () => {
730730
// Kick off upload
731731
await runProgressPauseTest(bigBlob);
732732
});

0 commit comments

Comments
 (0)