@@ -30,7 +30,6 @@ public class MethodInvokeIT extends BaseIT {
30
30
private static final int TIMEOUT_MS = 100 ;
31
31
private static final ResiliencyOptions RESILIENCY_OPTIONS = new ResiliencyOptions ()
32
32
.setTimeout (Duration .ofMillis (TIMEOUT_MS ));
33
- private static final String EXCEPTION_MARKER = "DEADLINE_EXCEEDED: deadline exceeded after" ;
34
33
35
34
/**
36
35
* Run of a Dapr application.
@@ -92,7 +91,7 @@ public void testInvokeTimeout() throws Exception {
92
91
String message = assertThrows (StatusRuntimeException .class , () -> stub .sleep (req )).getMessage ();
93
92
long delay = System .currentTimeMillis () - started ;
94
93
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" ) );
96
95
}
97
96
}
98
97
@@ -112,7 +111,8 @@ public void testInvokeException() throws Exception {
112
111
// If this test fails, there might be a regression in runtime (like we had in 1.10.0).
113
112
// The expectations below are as per 1.9 release and (later on) hotfixed in 1.10.
114
113
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 ());
116
116
}
117
117
}
118
118
0 commit comments