changeset 4116:f13bda195619

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
author jlahoda
date Thu, 20 Apr 2017 13:43:03 +0200
parents 68536b95691c
children 9be30ec2401e
files test/jdk/jshell/CompletionSuggestionTest.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/jdk/jshell/CompletionSuggestionTest.java	Wed Apr 19 10:26:48 2017 -0700
+++ b/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 {