From e9c841a2d74c1140dceb466575a8a1bc0ba9ca1d Mon Sep 17 00:00:00 2001 From: Li Haoyi Date: Tue, 7 Jan 2025 08:35:11 +0800 Subject: [PATCH] . --- .../src/RunBackgroundTests.scala | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) 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) + } + } } } }