File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
core/src/test/java/io/grpc/internal Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1259,7 +1259,7 @@ public void getPortBeforeStartedFails() {
12591259 transportServer = new SimpleServer ();
12601260 createServer ();
12611261 IllegalStateException e = assertThrows (IllegalStateException .class , () -> server .getPort ());
1262- assertThat (e ).hasMessageThat ().contains ( " started" );
1262+ assertThat (e ).hasMessageThat ().isEqualTo ( "Not started" );
12631263 }
12641264
12651265 @ Test
@@ -1269,7 +1269,7 @@ public void getPortAfterTerminationFails() throws Exception {
12691269 server .shutdown ();
12701270 server .awaitTermination ();
12711271 IllegalStateException e = assertThrows (IllegalStateException .class , () -> server .getPort ());
1272- assertThat (e ).hasMessageThat ().contains ( " terminated" );
1272+ assertThat (e ).hasMessageThat ().isEqualTo ( "Already terminated" );
12731273 }
12741274
12751275 @ Test
You can’t perform that action at this time.
0 commit comments