File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
test/jdk/javax/swing/text/html/parser/Parser/8078268 Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) 2016, 2022 , Oracle and/or its affiliates. All rights reserved.
2+ * Copyright (c) 2016, 2023 , Oracle and/or its affiliates. All rights reserved.
33* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44*
55* This code is free software; you can redistribute it and/or modify it
3838 @run main bug8078268
3939*/
4040public class bug8078268 {
41- private static final long TIMEOUT = 10_000 ;
41+ private static final float tf = Float .parseFloat (System .getProperty ("test.timeout.factor" , "1.0" ));
42+ private static final long TIMEOUT = 10_000 * (long )tf ;
4243
4344 private static final String FILENAME = "slowparse.html" ;
4445
@@ -61,7 +62,7 @@ public void run() {
6162 });
6263
6364 if (!latch .await (TIMEOUT , MILLISECONDS )) {
64- throw new RuntimeException ("Parsing takes too long." );
65+ throw new RuntimeException ("Parsing takes too long. Current timeout is " + TIMEOUT );
6566 }
6667 if (exception != null ) {
6768 throw exception ;
You can’t perform that action at this time.
0 commit comments