Class TestScanningLock


  • public class TestScanningLock
    extends Object
    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 its the only one I can think of at the moment.
    • Constructor Detail

      • TestScanningLock

        public TestScanningLock()
    • Method Detail

      • 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()