Skip to content

Commit

Permalink
8300205: Swing test bug8078268 make latch timeout configurable
Browse files Browse the repository at this point in the history
Reviewed-by: aivanov, serb
  • Loading branch information
MBaesken committed Jan 17, 2023
1 parent 9a36f8a commit e82dc69
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -38,7 +38,8 @@
@run main bug8078268
*/
public class bug8078268 {
private static final long TIMEOUT = 10_000;
private static final float tf = Float.parseFloat(System.getProperty("test.timeout.factor", "1.0"));
private static final long TIMEOUT = 10_000 * (long)tf;

private static final String FILENAME = "slowparse.html";

Expand All @@ -61,7 +62,7 @@ public void run() {
});

if (!latch.await(TIMEOUT, MILLISECONDS)) {
throw new RuntimeException("Parsing takes too long.");
throw new RuntimeException("Parsing takes too long. Current timeout is " + TIMEOUT);
}
if (exception != null) {
throw exception;
Expand Down

5 comments on commit e82dc69

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MBaesken
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/backport jdk17u-dev

@openjdk
Copy link

@openjdk openjdk bot commented on e82dc69 Feb 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MBaesken the backport was successfully created on the branch MBaesken-backport-e82dc693 in my personal fork of openjdk/jdk17u-dev. To create a pull request with this backport targeting openjdk/jdk17u-dev:master, just click the following link:

➡️ Create pull request

The title of the pull request is automatically filled in correctly and below you find a suggestion for the pull request body:

Hi all,

This pull request contains a backport of commit e82dc693 from the openjdk/jdk repository.

The commit being backported was authored by Matthias Baesken on 17 Jan 2023 and was reviewed by Alexey Ivanov and Sergey Bylokhov.

Thanks!

If you need to update the source branch of the pull then run the following commands in a local clone of your personal fork of openjdk/jdk17u-dev:

$ git fetch https://github.com/openjdk-bots/jdk17u-dev MBaesken-backport-e82dc693:MBaesken-backport-e82dc693
$ git checkout MBaesken-backport-e82dc693
# make changes
$ git add paths/to/changed/files
$ git commit --message 'Describe additional changes made'
$ git push https://github.com/openjdk-bots/jdk17u-dev MBaesken-backport-e82dc693

@MBaesken
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/backport jdk11u-dev

@openjdk
Copy link

@openjdk openjdk bot commented on e82dc69 Mar 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MBaesken the backport was successfully created on the branch MBaesken-backport-e82dc693 in my personal fork of openjdk/jdk11u-dev. To create a pull request with this backport targeting openjdk/jdk11u-dev:master, just click the following link:

➡️ Create pull request

The title of the pull request is automatically filled in correctly and below you find a suggestion for the pull request body:

Hi all,

This pull request contains a backport of commit e82dc693 from the openjdk/jdk repository.

The commit being backported was authored by Matthias Baesken on 17 Jan 2023 and was reviewed by Alexey Ivanov and Sergey Bylokhov.

Thanks!

If you need to update the source branch of the pull then run the following commands in a local clone of your personal fork of openjdk/jdk11u-dev:

$ git fetch https://github.com/openjdk-bots/jdk11u-dev MBaesken-backport-e82dc693:MBaesken-backport-e82dc693
$ git checkout MBaesken-backport-e82dc693
# make changes
$ git add paths/to/changed/files
$ git commit --message 'Describe additional changes made'
$ git push https://github.com/openjdk-bots/jdk11u-dev MBaesken-backport-e82dc693

Please sign in to comment.