Package io.quarkus.dev.testing
Class TestScanningLock
java.lang.Object
io.quarkus.dev.testing.TestScanningLock
lock that is used to prevent scanning while the dev mode test is updating classes
This prevents races in the continuous testing tests. It's not an ideal solution
but it is the only one I can think of at the moment.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidThere is a race when testing this, where you can see the intermediate empty state of the file, or where the file time changes twice.static void
-
Constructor Details
-
TestScanningLock
public TestScanningLock()
-
-
Method Details
-
lockForTests
public static void lockForTests()There is a race when testing this, where you can see the intermediate empty state of the file, or where the file time changes twice. Dev mode tests hold this lock during modification to avoid the race. -
unlockForTests
public static void unlockForTests()
-