Skip to content

Commit 87d1148

Browse files
committed
Skip test on Unix
1 parent e6fae90 commit 87d1148

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/BuiltInTools/dotnet-watch/Internal/FileWatcher/EventBasedDirectoryWatcher.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33

44
using System.ComponentModel;
5-
using Microsoft.Extensions.Logging;
65

76
namespace Microsoft.DotNet.Watch
87
{

test/dotnet-watch.Tests/FileWatcherTests.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,12 @@ await TestOperation(
9494
}
9595

9696
[Theory]
97+
[SkipOnPlatform(TestPlatforms.AnyUnix, "https://github.com/dotnet/runtime/issues/116351")]
9798
[CombinatorialData]
9899
public async Task NewFileInNewDirectory(bool usePolling, bool nested)
99100
{
100101
var dir = _testAssetManager.CreateTestDirectory(identifier: usePolling.ToString()).Path;
101102

102-
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
103-
{
104-
Directory.CreateDirectory(Path.Combine(dir, ".dummy"));
105-
}
106-
107103
var dir1 = Path.Combine(dir, "dir1");
108104
var dir2 = nested ? Path.Combine(dir1, "dir2") : dir1;
109105
var fileInSubdir = Path.Combine(dir2, "file_in_subdir");

0 commit comments

Comments
 (0)