Skip to content

Commit 4a1a4e2

Browse files
committed
Revert "enable all transport tests"
This reverts commit 4869f68.
1 parent b3ef83c commit 4a1a4e2

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

.github/workflows/run-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
- uses: ./.github/actions/setup-gradle
5151

5252
- run: ./gradlew ${{ matrix.target }}Test --continue
53-
# timeout-minutes: 30
53+
timeout-minutes: 30
5454

5555
- if: always() && !cancelled()
5656
uses: actions/upload-artifact@v4

rsocket-transport-tests/src/commonMain/kotlin/io/rsocket/kotlin/transport/tests/TransportTest.kt

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import kotlin.time.Duration.Companion.seconds
3232

3333
//TODO: need to somehow rework those tests, as now they are super flaky
3434
abstract class TransportTest : SuspendTest {
35-
override val testTimeout: Duration = 10.minutes
35+
override val testTimeout: Duration = 3.minutes
3636

3737
private val testJob = SupervisorJob()
3838
protected val testContext = testJob + TestExceptionHandler
@@ -121,7 +121,7 @@ abstract class TransportTest : SuspendTest {
121121
}
122122

123123
@Test
124-
//@Ignore //flaky, ignore for now
124+
@Ignore //flaky, ignore for now
125125
fun requestChannel20000() = test {
126126
val request = flow {
127127
repeat(20_000) { emit(payload(7)) }
@@ -134,7 +134,7 @@ abstract class TransportTest : SuspendTest {
134134
}
135135

136136
@Test
137-
//@Ignore //flaky, ignore for now
137+
@Ignore //flaky, ignore for now
138138
fun requestChannel200000() = test {
139139
val request = flow {
140140
repeat(200_000) { emit(payload(it)) }
@@ -148,7 +148,7 @@ abstract class TransportTest : SuspendTest {
148148
}
149149

150150
@Test
151-
//@Ignore //flaky, ignore for now
151+
@Ignore //flaky, ignore for now
152152
fun requestChannel16x256() = test {
153153
val request = flow {
154154
repeat(256) {
@@ -164,7 +164,7 @@ abstract class TransportTest : SuspendTest {
164164
}
165165

166166
@Test
167-
//@Ignore //flaky, ignore for now
167+
@Ignore //flaky, ignore for now
168168
fun requestChannel256x512() = test {
169169
val request = flow {
170170
repeat(512) {
@@ -180,7 +180,7 @@ abstract class TransportTest : SuspendTest {
180180
}
181181

182182
@Test
183-
//@IgnoreNative // slow test
183+
@IgnoreNative // slow test
184184
fun requestStreamX16() = test {
185185
(0..16).map {
186186
async {
@@ -191,7 +191,7 @@ abstract class TransportTest : SuspendTest {
191191
}
192192

193193
@Test
194-
//@Ignore //flaky, ignore for now
194+
@Ignore //flaky, ignore for now
195195
fun requestStreamX256() = test {
196196
(0..256).map {
197197
async {
@@ -202,7 +202,7 @@ abstract class TransportTest : SuspendTest {
202202
}
203203

204204
@Test
205-
//@IgnoreNative //flaky, ignore for now
205+
@IgnoreNative //flaky, ignore for now
206206
fun requestChannel500NoLeak() = test {
207207
val request = flow {
208208
repeat(10_000) { emitOrClose(payload(3)) }
@@ -241,13 +241,13 @@ abstract class TransportTest : SuspendTest {
241241
}
242242

243243
@Test
244-
//@IgnoreNative //flaky, ignore for now
244+
@IgnoreNative //flaky, ignore for now
245245
fun requestResponse10000() = test {
246246
(1..10000).map { async { client.requestResponse(payload(3)).let(Companion::checkPayload) } }.awaitAll()
247247
}
248248

249249
@Test
250-
//@Ignore //flaky, ignore for now
250+
@Ignore //flaky, ignore for now
251251
fun requestResponse100000() = test {
252252
repeat(100000) { client.requestResponse(payload(3)).let(Companion::checkPayload) }
253253
}
@@ -260,14 +260,14 @@ abstract class TransportTest : SuspendTest {
260260
}
261261

262262
@Test
263-
//@IgnoreNative
263+
@IgnoreNative
264264
fun requestStream8K() = test {
265265
val count = client.requestStream(payload(3)).onEach { checkPayload(it) }.count()
266266
assertEquals(8192, count) // TODO
267267
}
268268

269269
@Test
270-
//@IgnoreNative
270+
@IgnoreNative
271271
fun requestStream500NoLeak() = test {
272272
val count =
273273
client

0 commit comments

Comments
 (0)