Skip to content

Commit 587f76c

Browse files
committed
Flaky test
1 parent 37f5924 commit 587f76c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

okhttp/src/test/java/okhttp3/internal/connection/ConnectionPoolTest.kt

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2015 Square, Inc.
2+
* Copyright (C) 2024 Square, Inc.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,6 +21,7 @@ import assertk.assertions.isEqualTo
2121
import assertk.assertions.isFalse
2222
import assertk.assertions.isNotEmpty
2323
import assertk.assertions.isTrue
24+
import kotlin.test.Ignore
2425
import okhttp3.Address
2526
import okhttp3.ConnectionPool
2627
import okhttp3.FakeRoutePlanner
@@ -34,6 +35,7 @@ import okhttp3.internal.http2.Http2Connection
3435
import okhttp3.internal.http2.Http2ConnectionTest
3536
import okhttp3.internal.http2.MockHttp2Peer
3637
import okhttp3.internal.http2.Settings
38+
import okhttp3.testing.Flaky
3739
import org.junit.jupiter.api.AfterEach
3840
import org.junit.jupiter.api.Test
3941

@@ -229,6 +231,7 @@ class ConnectionPoolTest {
229231
assertThat(pool.connectionCount()).isEqualTo(1)
230232
}
231233

234+
@Flaky
232235
@Test fun connectionPreWarmingHttp2() {
233236
taskFaker.advanceUntil(System.nanoTime())
234237
val expireSooner = taskFaker.nanoTime + 1_000_000_000_000

0 commit comments

Comments
 (0)