Skip to content

Commit

Permalink
8295324: Fix race condition in junit test
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardsdv committed Oct 17, 2022
1 parent fa47d16 commit fdec73d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -236,7 +236,7 @@ public ServiceUIFactory getServiceUIFactory() {
private static class PrinterJobMock extends java.awt.print.PrinterJob {
private PrintService service;
private Pageable pageable;
private boolean printed;
private volatile boolean printed;

public void waitUntilPrinted(int timeoutInSeconds) {
for (int i = 0; !printed && i < timeoutInSeconds; i++) {
Expand Down

0 comments on commit fdec73d

Please sign in to comment.