Skip to content

Commit 4edcce7

Browse files
authored
fix: windows ci flakey test (#1004)
1 parent 5e5a2ba commit 4edcce7

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
if: failure()
6868
uses: actions/upload-artifact@v3
6969
with:
70-
name: test-reports
70+
name: test-reports-${{ matrix.os }}
7171
path: '**/build/reports'
7272

7373
downstream:
@@ -114,4 +114,4 @@ jobs:
114114
sed -i "s/smithy-kotlin-codegen-version = .*$/smithy-kotlin-codegen-version = \"$SMITHY_KOTLIN_CODEGEN_VERSION\"/" gradle/libs.versions.toml
115115
./gradlew --parallel publishToMavenLocal
116116
./gradlew test jvmTest
117-
./gradlew testAllProtocols
117+
./gradlew testAllProtocols

runtime/protocol/http-client/common/test/aws/smithy/kotlin/runtime/http/interceptors/FlexibleChecksumsRequestInterceptorTest.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,12 @@ class FlexibleChecksumsRequestInterceptorTest {
100100

101101
@Test
102102
fun itRemovesChecksumHeadersForAwsChunked() = runTest {
103+
val data = ByteArray(65536 * 32) { 'a'.code.toByte() }
104+
103105
val req = HttpRequestBuilder().apply {
104106
body = object : HttpBody.SourceContent() {
105-
override val contentLength: Long = 1024 * 1024 * 128
106-
override fun readFrom(): SdkSource = "a".repeat(contentLength.toInt()).encodeToByteArray().source()
107+
override val contentLength: Long = data.size.toLong()
108+
override fun readFrom(): SdkSource = data.source()
107109
override val isOneShot: Boolean get() = false
108110
}
109111
}

0 commit comments

Comments
 (0)