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 353c888
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 Down Expand Up @@ -34,7 +34,9 @@ import okhttp3.internal.http2.Http2Connection
import okhttp3.internal.http2.Http2ConnectionTest
import okhttp3.internal.http2.MockHttp2Peer
import okhttp3.internal.http2.Settings
import org.junit.Ignore
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,6 +231,7 @@ class ConnectionPoolTest {
assertThat(pool.connectionCount()).isEqualTo(1)
}

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

0 comments on commit 353c888

Please sign in to comment.