Skip to content

Commit b569097

Browse files
authoredOct 17, 2023
test: UNKNOWN or UNAVAILABLE (#1860)
1 parent 3a18a25 commit b569097

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎interop-tests/src/test/scala/akka/grpc/scaladsl/LoadBalancingIntegrationSpec.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ class LoadBalancingIntegrationSpec(backend: String, config: Config = ConfigFacto
154154
client.sayHello(HelloRequest(s"Hello friend")).failed.futureValue.asInstanceOf[StatusRuntimeException]
155155
// FIXME issue #1857, not sure how this is supposed to be
156156
if (backend == "netty")
157-
failure.getStatus.getCode should be(Code.UNKNOWN)
157+
failure.getStatus.getCode should (equal(Code.UNKNOWN).or(equal(Code.UNAVAILABLE)))
158158
else
159159
failure.getStatus.getCode should be(Code.UNAVAILABLE)
160160

@@ -177,7 +177,7 @@ class LoadBalancingIntegrationSpec(backend: String, config: Config = ConfigFacto
177177
client.sayHello(HelloRequest(s"Hello friend")).failed.futureValue.asInstanceOf[StatusRuntimeException]
178178
// FIXME issue #1857, not sure how this is supposed to be
179179
if (backend == "netty")
180-
failure.getStatus.getCode should be(Code.UNKNOWN)
180+
failure.getStatus.getCode should (equal(Code.UNKNOWN).or(equal(Code.UNAVAILABLE)))
181181
else
182182
failure.getStatus.getCode should be(Code.UNAVAILABLE)
183183

‎interop-tests/src/test/scala/akka/grpc/scaladsl/NonBalancingIntegrationSpec.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ class NonBalancingIntegrationSpec(backend: String)
177177
client.sayHello(HelloRequest(s"Hello friend")).failed.futureValue.asInstanceOf[StatusRuntimeException]
178178
// FIXME issue #1857, not sure how this is supposed to be
179179
if (backend == "netty")
180-
failure.getStatus.getCode should be(Code.UNKNOWN)
180+
failure.getStatus.getCode should (equal(Code.UNKNOWN).or(equal(Code.UNAVAILABLE)))
181181
else {
182182
failure.getStatus.getCode should be(Code.UNAVAILABLE)
183183
client.closed.failed.futureValue shouldBe a[ClientConnectionException]

0 commit comments

Comments
 (0)
Please sign in to comment.