8178481: jdk/jshell/CompletionSuggestionTest.java routinely fails
authorjlahoda
Thu, 20 Apr 2017 13:43:03 +0200
changeset 44814 d008ab12a00a
parent 44813 eac0b6c86a43
child 44815 2a0f6c7033bd
8178481: jdk/jshell/CompletionSuggestionTest.java routinely fails Summary: Depending on the test order, the completion after 'import c<tab>' may include additional entries besides 'com', only checking 'com' is present. Reviewed-by: rfield
langtools/test/jdk/jshell/CompletionSuggestionTest.java
--- a/langtools/test/jdk/jshell/CompletionSuggestionTest.java	Wed Apr 19 10:26:48 2017 -0700
+++ b/langtools/test/jdk/jshell/CompletionSuggestionTest.java	Thu Apr 20 13:43:03 2017 +0200
@@ -296,7 +296,7 @@
     }
 
     public void testImportStart() {
-        assertCompletion("import c|", "com");
+        assertCompletionIncludesExcludes("import c|", Set.of("com"), Set.of());
     }
 
     public void testBrokenClassFile() throws Exception {