Skip to content

Commit daeec54

Browse files
committed
fix(test): keep the C# eject e2e off inotify
The generated web app's default host builder watches appsettings.json with an inotify instance, and the per-user limit is shared with every other process the user runs. When it is spent the test dies in WebApplication.CreateBuilder with an IOException that has nothing to do with the code under test. The polling file watcher needs no inotify instance.
1 parent e960e37 commit daeec54

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎server/csharp/MetaObjects.Cli.Tests/EjectEndToEndTests.cs‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ private static string RepoRoot()
7676
psi.Environment["MSBUILDDISABLENODEREUSE"] = "1";
7777
psi.Environment["DOTNET_CLI_USE_MSBUILD_SERVER"] = "0";
7878
psi.Environment["UseSharedCompilation"] = "false";
79+
// The generated web app's default host builder watches appsettings.json with an inotify
80+
// instance, and the per-user limit (128 by default) is shared with every other process the
81+
// user runs, including other test lanes. When it is spent the app dies in
82+
// WebApplication.CreateBuilder with an IOException (exit 134) that has nothing to do with
83+
// the code under test; polling needs no inotify instance.
84+
psi.Environment["DOTNET_USE_POLLING_FILE_WATCHER"] = "1";
7985
psi.ArgumentList.Add("run");
8086
psi.ArgumentList.Add("--project");
8187
psi.ArgumentList.Add(project);

0 commit comments

Comments
 (0)