fixed unit test bug
Some checks failed
CI / build (push) Failing after 11s

This commit is contained in:
2025-01-23 21:44:01 +08:00
parent 8f930d51a5
commit 73d95a21a3

View File

@@ -16,14 +16,6 @@ public class LockFileTestMain {
boolean shared,
boolean keep
) {
Thread t = new Thread((Run)() -> {
try (AutoCloseable lockfile = LockFile.acquire(lockfilePath, shared)) {
while (keep) {
Thread.sleep(1000);
}
}
});
t.start();
try (AutoCloseable lockfile = LockFile.acquire(lockfilePath, shared)) {
while (keep) {
Thread.sleep(1000);