Skip to content

Commit

Permalink
docs: describe what to do when test fails
Browse files Browse the repository at this point in the history
This test is quite important, because it ensure we don't forget
supporting RPCs in ZPT. To help clarify this, I've added instructions in
case the test fails.

(cherry picked from commit 46a2e5c)
  • Loading branch information
korthout authored and github-actions[bot] committed Jan 3, 2024
1 parent 9d13cd5 commit d76f381
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,13 @@ void testImplementsGatewayEndpoint(final String methodName) {
.findAny();

assertThat(optionalMethod)
.describedAs("Expected method %s to be implemented", methodName)
.describedAs(
"""
Expected method %s to be implemented. \
When this test fails, it's likely a new RPC that ZPT should support. \
Please check whether it should be supported by ZPT. \
If it should be suported, add a test case to EngineClientTest.java""",
methodName)
.isPresent();
}

Expand Down

0 comments on commit d76f381

Please sign in to comment.