Skip to content

Commit dd6cda8

Browse files
authored
test: handle expected exception in GUI test (GoogleCloudPlatform#7354)
1 parent c55c61d commit dd6cda8

File tree

1 file changed

+1
-1
lines changed
  • iot/api-client/codelab/manager/src/test/java/com/example/cloud/iot/examples

1 file changed

+1
-1
lines changed

iot/api-client/codelab/manager/src/test/java/com/example/cloud/iot/examples/ManagerIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public void testTerminal() throws Exception {
7878
Assert.assertTrue(terminal.getTerminalSize().toString().contains("x"));
7979
Assert.assertTrue(terminal.getTerminalSize().toString().contains("{"));
8080
Assert.assertTrue(terminal.getTerminalSize().toString().contains("}"));
81-
} catch (FileNotFoundException e) {
81+
} catch (IOException e) {
8282
// Don't fail when GUI not available: "/dev/tty (No such device or address)"
8383
System.out.println(e.getMessage());
8484
}

0 commit comments

Comments
 (0)