@Override
		protected void run() throws Exception {

			Address addr = currentProgram.getAddressFactory().getAddress("10001000");
			createLabel(addr, "Test", true);

			startedLatch.countDown();// signal to the test that it can continue

			int total = 0;

			try {
				while (total < DEFAULT_WAIT_TIMEOUT) {
					monitor.checkCancelled();
					total += sleep(DEFAULT_WAIT_DELAY);

					if (testOver) {
						doneLatch.countDown();
						return;
					}
				}
			}
			catch (CancelledException e) {
				doneLatch.countDown();
				throw e;
			}

			doneLatch.countDown();
			throw new AssertException("Test script was never cancelled");
		}
Unusual Code Alert!: the test runs faster than the writing of the class file
and the File object's modified granularity is not low enough such that sometimes
the code will not recompile a script that we have changed, as it will not do
so if it thinks the file has not changed.

@param file the file to update
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/script/AbstractGhidraScriptMgrPluginTest.java