Skip to content

Commit fec9292

Browse files
committed
fix: Linux test build
1 parent ab7a80d commit fec9292

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Nickvision.Desktop.Tests/PowerServiceTests.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using Nickvision.Desktop.System;
2-
using System;
32
using System.Threading.Tasks;
43

54
namespace Nickvision.Desktop.Tests;
@@ -20,7 +19,7 @@ public void Case001_Initialize()
2019
public async Task Case002_PreventSuspend()
2120
{
2221
#if OS_LINUX
23-
if (Environment.GetEnvironmentVariable("CI") == "true")
22+
if (global::System.global::System.Environment.GetEnvironmentVariable("CI") == "true")
2423
{
2524
Assert.Inconclusive("org.freedesktop.ScreenSaver service not available in CI environments");
2625
}
@@ -33,7 +32,7 @@ public async Task Case002_PreventSuspend()
3332
public async Task Case003_AllowSuspend()
3433
{
3534
#if OS_LINUX
36-
if (Environment.GetEnvironmentVariable("CI") == "true")
35+
if (global::System.Environment.GetEnvironmentVariable("CI") == "true")
3736
{
3837
Assert.Inconclusive("org.freedesktop.ScreenSaver service not available in CI environments");
3938
}

0 commit comments

Comments
 (0)