All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.apollographql.apollo.engine.tests.all-tests.kt Maven / Gradle / Ivy

There is a newer version: 4.0.0
Show newest version
package com.apollographql.apollo.engine.tests

import com.apollographql.apollo.annotations.ApolloInternal
import com.apollographql.apollo.network.http.HttpEngine
import com.apollographql.apollo.network.ws.WebSocketEngine

@ApolloInternal
suspend fun runAllTests(engine: (Long) -> HttpEngine, webSocketEngine: () -> WebSocketEngine, checkCloseFrame: Boolean) {
  gzipTest(engine(60_000))
  errorWithBody(engine)
  headers(engine)
  post(engine)
  connectTimeout(engine)
  readTimeout(engine)

  textFrames(webSocketEngine)
  binaryFrames(webSocketEngine)
  serverCloseNicely(webSocketEngine, checkCloseFrame)
  serverCloseAbruptly(webSocketEngine)
  headers(webSocketEngine)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy