8256037: [TESTBUG] com/sun/jndi/dns/ConfigTests/PortUnreachable.java fails due to the hard coded threshold is small

Reviewed-by: shade, aefimov
This commit is contained in:
Jie Fu 2020-11-17 01:35:30 +00:00
parent 36dbe6f2de
commit eabf3bace7

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 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
@ -44,9 +44,9 @@ public class PortUnreachable extends DNSTestBase {
// Threshold in ms for elapsed time of request failed. Normally, it should
// be very quick, but consider to different platform and test machine
// performance, here we define 1000 ms as threshold which acceptable for
// performance, here we define 3000 ms as threshold which acceptable for
// this test.
private static final int THRESHOLD = 1000;
private static final int THRESHOLD = 3000;
private long startTime;