Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarashev committed Jun 1, 2020
1 parent d7cac42 commit 2876188
Showing 1 changed file with 14 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,13 @@ class GPCloudDocumentTest {
"fileContents" to Base64.getEncoder().encodeToString(BODY_566),
"lockToken" to null,
"oldVersion" to "100500"
))).andReturn(TestResponse(headers = mapOf(
"ETag" to "146512",
"Digest" to "crc32c=${BODY_566.checksum()}"
)))
))).andReturn(TestResponse(
headers = mapOf(
"ETag" to "146512",
"Digest" to "crc32c=${BODY_566.checksum()}"
),
rawBody = JACKSON.writeValueAsBytes(ProjectWriteResponse(projectRefid = "prj1"))
))
EasyMock.replay(mockHttpClient)
doc.outputStream.use {
ByteStreams.copy(byteArrayOf(5, 6, 6).inputStream(), it)
Expand Down Expand Up @@ -293,10 +296,13 @@ class GPCloudDocumentTest {
"fileContents" to Base64.getEncoder().encodeToString(BODY_566),
"lockToken" to null,
"oldVersion" to null
))).andReturn(TestResponse(headers = mapOf(
"ETag" to "146512",
"Digest" to "crc32c=${BODY_566.checksum()}"
)))
))).andReturn(TestResponse(
headers = mapOf(
"ETag" to "146512",
"Digest" to "crc32c=${BODY_566.checksum()}"
),
rawBody = JACKSON.writeValueAsBytes(ProjectWriteResponse(projectRefid = "prj1"))
))
EasyMock.replay(mockHttpClient)

retryCounter.await()
Expand Down

0 comments on commit 2876188

Please sign in to comment.