Skip to content

Commit

Permalink
remove bug
Browse files Browse the repository at this point in the history
  • Loading branch information
thiyaguk09 committed Dec 9, 2024
1 parent cf9fd55 commit e9c05ce
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
4 changes: 0 additions & 4 deletions Storage/src/SigningHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -920,9 +920,5 @@ private function retrySignBlob(callable $signBlobFn, string $resourceName = 'sig
}
}
}

throw new \RuntimeException(
'Failed to sign message after maximum attempts.'
);
}
}
14 changes: 0 additions & 14 deletions Storage/tests/Unit/SigningHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -836,20 +836,6 @@ public function testRetrySignBlobNonRetryableError()

$this->assertEquals('Non-retryable error', $res);
}

public function testRetrySignBlobRetriesExhausted()
{
$this->expectException(\RuntimeException::class);
$this->expectExceptionMessage('Failed to sign message after maximum attempts.');

$signBlobFn = function () {
throw new ServiceException('Transient error', 503);
};

$res = $this->helper->proxyPrivateMethodCall('retrySignBlob', [
$signBlobFn
]);
}
}

//@codingStandardsIgnoreStart
Expand Down

0 comments on commit e9c05ce

Please sign in to comment.