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 7266ab7
Showing 1 changed file with 5 additions and 2 deletions.
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 Down Expand Up @@ -35,6 +35,7 @@ import okhttp3.internal.http2.Http2ConnectionTest
import okhttp3.internal.http2.MockHttp2Peer
import okhttp3.internal.http2.Settings
import org.junit.jupiter.api.AfterEach
import org.junit.jupiter.api.Disabled
import org.junit.jupiter.api.Test

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

@Test fun connectionPreWarmingHttp2() {
@Disabled("Http2Connection uses non-deterministic TaskRunner")
@Test
fun connectionPreWarmingHttp2() {
taskFaker.advanceUntil(System.nanoTime())
val expireSooner = taskFaker.nanoTime + 1_000_000_000_000
val expireLater = taskFaker.nanoTime + 2_000_000_000_000
Expand Down

0 comments on commit 7266ab7

Please sign in to comment.