Skip to content

Commit

Permalink
test: UNKNOWN or UNAVAILABLE (#1860)
Browse files Browse the repository at this point in the history
  • Loading branch information
patriknw authored Oct 17, 2023
1 parent 3a18a25 commit b569097
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class LoadBalancingIntegrationSpec(backend: String, config: Config = ConfigFacto
client.sayHello(HelloRequest(s"Hello friend")).failed.futureValue.asInstanceOf[StatusRuntimeException]
// FIXME issue #1857, not sure how this is supposed to be
if (backend == "netty")
failure.getStatus.getCode should be(Code.UNKNOWN)
failure.getStatus.getCode should (equal(Code.UNKNOWN).or(equal(Code.UNAVAILABLE)))
else
failure.getStatus.getCode should be(Code.UNAVAILABLE)

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

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

0 comments on commit b569097

Please sign in to comment.