Skip to content

Commit

Permalink
Change backend signature in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
benzwreck committed Jul 21, 2023
1 parent 7682885 commit fa01001
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ object FollowRedirectsBackend {
new FollowRedirectsBackend(delegate, config) with Backend[F] {}
def apply[F[_]](delegate: WebSocketBackend[F], config: FollowRedirectsConfig): WebSocketBackend[F] =
new FollowRedirectsBackend(delegate, config) with WebSocketBackend[F] {}

def apply(delegate: WebSocketSyncBackend, config: FollowRedirectsConfig): WebSocketSyncBackend =
new FollowRedirectsBackend(delegate, config) with WebSocketSyncBackend {}
def apply[F[_], S](delegate: StreamBackend[F, S], config: FollowRedirectsConfig): StreamBackend[F, S] =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import sttp.client4.httpclient.HttpClientSyncBackend
import sttp.client4.testing.{ConvertToFuture, HttpTest}

class HttpClientSyncHttpTest extends HttpTest[Identity] {
override val backend: WebSocketBackend[Identity] = HttpClientSyncBackend()
override val backend: WebSocketSyncBackend = HttpClientSyncBackend()
override implicit val convertToFuture: ConvertToFuture[Identity] = ConvertToFuture.id

override def supportsHostHeaderOverride = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import sttp.client4.testing.ConvertToFuture
import sttp.monad.MonadError

class HttpClientSyncWebSocketTest extends WebSocketTest[Identity] {
override val backend: WebSocketBackend[Identity] = HttpClientSyncBackend()
override val backend: WebSocketSyncBackend = HttpClientSyncBackend()
override implicit val convertToFuture: ConvertToFuture[Identity] = ConvertToFuture.id
override implicit val monad: MonadError[Identity] = IdMonad

Expand Down

0 comments on commit fa01001

Please sign in to comment.