Skip to content

Commit

Permalink
Ignore windows failures
Browse files Browse the repository at this point in the history
  • Loading branch information
yschimke committed Feb 17, 2024
1 parent 57bd751 commit 5d5087e
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* limitations under the License.
*/
@file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")

package mockwebserver3.internal.http2

import java.io.File
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ class TaskFaker : Closeable {

override fun <T> decorate(queue: BlockingQueue<T>) = TaskFakerBlockingQueue(queue)
},
logger = taskLogger
logger = taskLogger,
)

/** Wait for the test thread to proceed. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ internal interface TaskLogger {
fun logString(
queue: TaskQueue,
message: String,
task: Task
task: Task,
) = "${queue.name} ${"%-22s".format(message)}: ${task.name}"

/**
Expand Down
8 changes: 8 additions & 0 deletions okhttp/src/test/java/okhttp3/CacheTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2699,6 +2699,8 @@ class CacheTest {
*/
@Test
fun testGoldenCacheResponse() {
platform.assumeNotWindows()

cache.close()
server.enqueue(
MockResponse.Builder()
Expand Down Expand Up @@ -2755,6 +2757,8 @@ CLEAN $urlKey ${entryMetadata.length} ${entryBody.length}
/** Exercise the cache format in OkHttp 2.7 and all earlier releases. */
@Test
fun testGoldenCacheHttpsResponseOkHttp27() {
platform.assumeNotWindows()

val url = server.url("/")
val urlKey = key(url)
val prefix = get().getPrefix()
Expand Down Expand Up @@ -2803,6 +2807,8 @@ CLEAN $urlKey ${entryMetadata.length} ${entryBody.length}
/** The TLS version is present in OkHttp 3.0 and beyond. */
@Test
fun testGoldenCacheHttpsResponseOkHttp30() {
platform.assumeNotWindows()

val url = server.url("/")
val urlKey = key(url)
val prefix = get().getPrefix()
Expand Down Expand Up @@ -2855,6 +2861,8 @@ CLEAN $urlKey ${entryMetadata.length} ${entryBody.length}

@Test
fun testGoldenCacheHttpResponseOkHttp30() {
platform.assumeNotWindows()

val url = server.url("/")
val urlKey = key(url)
val prefix = get().getPrefix()
Expand Down
6 changes: 6 additions & 0 deletions okhttp/src/test/java/okhttp3/ServerTruncatesRequestTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ class ServerTruncatesRequestTest {

@Test
fun serverTruncatesRequestOnLongPostHttp1() {
// java.net.SocketException: An established connection was aborted by the software in your host machine
platform.assumeNotWindows()

serverTruncatesRequestOnLongPost(https = false)
}

Expand Down Expand Up @@ -171,6 +174,9 @@ class ServerTruncatesRequestTest {

@Test
fun serverTruncatesRequestButTrailersCanStillBeReadHttp1() {
// java.net.SocketException: An established connection was aborted by the software in your host machine
platform.assumeNotWindows()

serverTruncatesRequestButTrailersCanStillBeRead(http2 = false)
}

Expand Down

0 comments on commit 5d5087e

Please sign in to comment.