Closed scott-brady closed 1 month ago
This is possibly caused by a race condition where the Gauge.Dotnet.dll
child process exists before the Kestrel host is started and ready to accept requests from the gauge
parent process.
I noticed IGaugeCommand.Execute()
returns Task<bool>
, but in Program.Main()
the call to command.Execute()
is not awaited. I believe this might be causing the issue because the Main()
method is sometimes exiting (and causing the program to exit) before the call to the asynchronous command.Execute()
is complete.
This might be able to be resolved by simply adding an await
to command.Execute()
.
Raised PR #197 with fix.
Specific issue was resolved in #197 according to OP.
When running
gauge run specs
, the command intermittently fails with an error similar to the following:This has been reproduced on multiple projects, including the template project generated by
gauge init dotnet
.Environment Info