diff --git a/integration/invalidation/run-background/src/RunBackgroundTests.scala b/integration/invalidation/run-background/src/RunBackgroundTests.scala index 3203301e293..090e3158592 100644 --- a/integration/invalidation/run-background/src/RunBackgroundTests.scala +++ b/integration/invalidation/run-background/src/RunBackgroundTests.scala @@ -38,15 +38,21 @@ object RunBackgroundTests extends UtestIntegrationTestSuite { eventually { probeLockAvailable(lock) } } test("clean") - integrationTest { tester => - import tester._ - val lock = os.temp() - val stop = os.temp() - os.remove(stop) - eval(("foo.runBackground", lock, stop)) - eventually { !probeLockAvailable(lock) } + if (!mill.main.client.Util.isWindows) { + import tester._ + val lock = os.temp() + val stop = os.temp() + os.remove(stop) + eval(("foo.runBackground", lock, stop)) + eventually { + !probeLockAvailable(lock) + } - eval(("clean", "foo.runBackground")) - eventually { probeLockAvailable(lock) } + eval(("clean", "foo.runBackground")) + eventually { + probeLockAvailable(lock) + } + } } } }