Skip to content

Commit 797de18

Browse files
committed
fix indentation issues
1 parent 87bd5ec commit 797de18

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/OctoshiftCLI.Tests/Octoshift/Services/ArchiveUploadersTests.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -325,9 +325,9 @@ public async Task Upload_Should_Retry_Failed_Upload_Part_Patch_Requests()
325325
.ThrowsAsync(new TimeoutException("The operation was canceled."))
326326
.ReturnsAsync((It.IsAny<string>(), new[] { new KeyValuePair<string, IEnumerable<string>>("Location", new[] { secondUploadUrl }) }));
327327
_githubClientMock // second PATCH request
328-
.Setup(m => m.PatchWithFullResponseAsync($"{baseUrl}{secondUploadUrl}",
329-
It.Is<HttpContent>(x => x.ReadAsByteArrayAsync().Result.ToJson() == new byte[] { 3 }.ToJson()), null))
330-
.ReturnsAsync((It.IsAny<string>(), new[] { new KeyValuePair<string, IEnumerable<string>>("Location", new[] { lastUrl }) }));
328+
.Setup(m => m.PatchWithFullResponseAsync($"{baseUrl}{secondUploadUrl}",
329+
It.Is<HttpContent>(x => x.ReadAsByteArrayAsync().Result.ToJson() == new byte[] { 3 }.ToJson()), null))
330+
.ReturnsAsync((It.IsAny<string>(), new[] { new KeyValuePair<string, IEnumerable<string>>("Location", new[] { lastUrl }) }));
331331

332332
// Mocking the final PUT request to complete the multipart upload
333333
_githubClientMock
@@ -388,7 +388,7 @@ public async Task Upload_Should_Retry_Failed_Start_Upload_Post_Request()
388388
_githubClientMock // first PATCH request
389389
.Setup(m => m.PatchWithFullResponseAsync($"{baseUrl}{firstUploadUrl}",
390390
It.Is<HttpContent>(x => x.ReadAsByteArrayAsync().Result.ToJson() == new byte[] { 1, 2 }.ToJson()), null))
391-
.ReturnsAsync((It.IsAny<string>(), new[] { new KeyValuePair<string, IEnumerable<string>>("Location", new[] { secondUploadUrl }) }));
391+
.ReturnsAsync((It.IsAny<string>(), new[] { new KeyValuePair<string, IEnumerable<string>>("Location", new[] { secondUploadUrl }) }));
392392

393393
_githubClientMock // second PATCH request
394394
.Setup(m => m.PatchWithFullResponseAsync($"{baseUrl}{secondUploadUrl}",
@@ -452,12 +452,12 @@ public async Task Upload_Should_Retry_Failed_Complete_Upload_Put_Request()
452452
_githubClientMock // first PATCH request
453453
.Setup(m => m.PatchWithFullResponseAsync($"{baseUrl}{firstUploadUrl}",
454454
It.Is<HttpContent>(x => x.ReadAsByteArrayAsync().Result.ToJson() == new byte[] { 1, 2 }.ToJson()), null))
455-
.ReturnsAsync((It.IsAny<string>(), new[] { new KeyValuePair<string, IEnumerable<string>>("Location", new[] { secondUploadUrl }) }));
455+
.ReturnsAsync((It.IsAny<string>(), new[] { new KeyValuePair<string, IEnumerable<string>>("Location", new[] { secondUploadUrl }) }));
456456

457457
_githubClientMock // second PATCH request
458-
.Setup(m => m.PatchWithFullResponseAsync($"{baseUrl}{secondUploadUrl}",
459-
It.Is<HttpContent>(x => x.ReadAsByteArrayAsync().Result.ToJson() == new byte[] { 3 }.ToJson()), null))
460-
.ReturnsAsync((It.IsAny<string>(), new[] { new KeyValuePair<string, IEnumerable<string>>("Location", new[] { lastUrl }) }));
458+
.Setup(m => m.PatchWithFullResponseAsync($"{baseUrl}{secondUploadUrl}",
459+
It.Is<HttpContent>(x => x.ReadAsByteArrayAsync().Result.ToJson() == new byte[] { 3 }.ToJson()), null))
460+
.ReturnsAsync((It.IsAny<string>(), new[] { new KeyValuePair<string, IEnumerable<string>>("Location", new[] { lastUrl }) }));
461461

462462
// Mocking the final PUT request to complete the multipart upload
463463
_githubClientMock

0 commit comments

Comments
 (0)