Skip to content

Commit 1feaf65

Browse files
committed
Update error message expectations in 1.15
Signed-off-by: Artur Souza <asouza.pro@gmail.com>
1 parent f9ffdeb commit 1feaf65

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sdk-tests/src/test/java/io/dapr/it/methodinvoke/grpc/MethodInvokeIT.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ public class MethodInvokeIT extends BaseIT {
3030
private static final int TIMEOUT_MS = 100;
3131
private static final ResiliencyOptions RESILIENCY_OPTIONS = new ResiliencyOptions()
3232
.setTimeout(Duration.ofMillis(TIMEOUT_MS));
33-
private static final String EXCEPTION_MARKER = "DEADLINE_EXCEEDED: deadline exceeded after";
3433

3534
/**
3635
* Run of a Dapr application.
@@ -92,7 +91,7 @@ public void testInvokeTimeout() throws Exception {
9291
String message = assertThrows(StatusRuntimeException.class, () -> stub.sleep(req)).getMessage();
9392
long delay = System.currentTimeMillis() - started;
9493
assertTrue(delay >= TIMEOUT_MS, "Delay: " + delay + " is not greater than timeout: " + TIMEOUT_MS);
95-
assertTrue(message.startsWith(EXCEPTION_MARKER), "Message: " + message + " does not start with: " + EXCEPTION_MARKER);
94+
assertTrue(message.contains("Message: DEADLINE_EXCEEDED: CallOptions deadline exceeded after"));
9695
}
9796
}
9897

@@ -112,7 +111,8 @@ public void testInvokeException() throws Exception {
112111
// If this test fails, there might be a regression in runtime (like we had in 1.10.0).
113112
// The expectations below are as per 1.9 release and (later on) hotfixed in 1.10.
114113
assertEquals(Status.UNKNOWN.getCode(), exception.getStatus().getCode());
115-
assertEquals("", exception.getStatus().getDescription());
114+
// The error message below is added starting in Dapr 1.15.0
115+
assertEquals("Application error processing RPC", exception.getStatus().getDescription());
116116
}
117117
}
118118

0 commit comments

Comments
 (0)