Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jdk17u
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
einsteinathome
openjdk
jdk17u
Commits
4b74741d
Commit
4b74741d
authored
5 months ago
by
Goetz Lindenmaier
Browse files
Options
Downloads
Patches
Plain Diff
8284291: sun/security/krb5/auto/Renew.java fails intermittently on Windows 11
Backport-of: 05ae7ed1aac6fabc9c8820c12b6567fe93a3546f
parent
e4860005
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/jdk/sun/security/krb5/auto/Renew.java
+5
-2
5 additions, 2 deletions
test/jdk/sun/security/krb5/auto/Renew.java
with
5 additions
and
2 deletions
test/jdk/sun/security/krb5/auto/Renew.java
+
5
−
2
View file @
4b74741d
/*
/*
* Copyright (c) 2015, 20
18
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 20
22
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
*
* This code is free software; you can redistribute it and/or modify it
* This code is free software; you can redistribute it and/or modify it
...
@@ -82,7 +82,10 @@ public class Renew {
...
@@ -82,7 +82,10 @@ public class Renew {
Date
d1
=
c
.
s
().
getPrivateCredentials
(
KerberosTicket
.
class
).
iterator
().
next
().
getAuthTime
();
Date
d1
=
c
.
s
().
getPrivateCredentials
(
KerberosTicket
.
class
).
iterator
().
next
().
getAuthTime
();
// 6s is longer than half of 10s
// 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
// The second login uses the cache
c
=
Context
.
fromJAAS
(
"second"
);
c
=
Context
.
fromJAAS
(
"second"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment