Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8284291: sun/security/krb5/auto/Renew.java fails intermittently on Windows 11 #2930

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions test/jdk/sun/security/krb5/auto/Renew.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2022, 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 @@ -82,7 +82,10 @@ public static void main(String[] args) throws Exception {
Date d1 = c.s().getPrivateCredentials(KerberosTicket.class).iterator().next().getAuthTime();

// 6s is longer than half of 10s
Thread.sleep(6000);
Date expiring = new Date(d1.getTime() + 6000);
while (new Date().before(expiring)) {
Thread.sleep(500);
}

// The second login uses the cache
c = Context.fromJAAS("second");
Expand Down