Skip to content

Commit

Permalink
Flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
ean5533 committed May 14, 2024
1 parent 37f5924 commit 587f76c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2015 Square, Inc.
* Copyright (C) 2024 Square, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -21,6 +21,7 @@ import assertk.assertions.isEqualTo
import assertk.assertions.isFalse
import assertk.assertions.isNotEmpty
import assertk.assertions.isTrue
import kotlin.test.Ignore
import okhttp3.Address
import okhttp3.ConnectionPool
import okhttp3.FakeRoutePlanner
Expand All @@ -34,6 +35,7 @@ import okhttp3.internal.http2.Http2Connection
import okhttp3.internal.http2.Http2ConnectionTest
import okhttp3.internal.http2.MockHttp2Peer
import okhttp3.internal.http2.Settings
import okhttp3.testing.Flaky
import org.junit.jupiter.api.AfterEach
import org.junit.jupiter.api.Test

Expand Down Expand Up @@ -229,6 +231,7 @@ class ConnectionPoolTest {
assertThat(pool.connectionCount()).isEqualTo(1)
}

@Flaky
@Test fun connectionPreWarmingHttp2() {
taskFaker.advanceUntil(System.nanoTime())
val expireSooner = taskFaker.nanoTime + 1_000_000_000_000
Expand Down

0 comments on commit 587f76c

Please sign in to comment.