Skip to content

Commit

Permalink
8253739: java/awt/image/MultiResolutionImage/MultiResolutionImageObse…
Browse files Browse the repository at this point in the history
…rverTest.java fails
  • Loading branch information
jayathirthrao committed Oct 1, 2020
1 parent 05a764f commit f643ee7
Showing 1 changed file with 3 additions and 3 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2020, 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 @@ -40,7 +40,7 @@

public class MultiResolutionImageObserverTest {

private static final int TIMEOUT = 500;
private static final int TIMEOUT = 2000;

public static void main(String[] args) throws Exception {

Expand Down Expand Up @@ -70,7 +70,7 @@ private static void waitForImageLoading(LoadImageObserver observer,
long endTime = System.currentTimeMillis() + TIMEOUT;

while (!observer.loaded && System.currentTimeMillis() < endTime) {
Thread.sleep(TIMEOUT / 10);
Thread.sleep(TIMEOUT / 100);
}

if (!observer.loaded) {
Expand Down

0 comments on commit f643ee7

Please sign in to comment.