Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8158462

CipherTest should get rid of race condition

XMLWordPrintable

      javax/net/ssl/sanity/interop/CipherTest.java
      sun/security/pkcs11/fips/CipherTest.java
      sun/security/pkcs11/sslecc/CipherTest.java

      The above tests have a similar code pattern, as shown as below:
      CipherTest cipherTest = new CipherTest(peerFactory);
      Thread serverThread = new Thread(peerFactory.newServer(cipherTest),
                "Server");
      serverThread.setDaemon(true);
      serverThread.start();
      System.out.println("Done");
      cipherTest.run();

      cipherTest may run before the server is ready.

            jjiang John Jiang
            jjiang John Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: