Skip to content

Commit d42c835

Browse files
committed
Revert "Adjust expected exit code in ShutdownTests.cs"
This reverts commit 3c695d2.
1 parent 1194316 commit d42c835

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Hosting/test/FunctionalTests/ShutdownTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ private async Task ExecuteShutdownTest(string testName, string shutdownMechanic)
9999

100100
SendSIGTERM(deployer.HostProcess.Id);
101101

102-
WaitForExitOrKill(deployer.HostProcess, 143); // Expected exit code of a process terminated by `kill -s TERM`
102+
WaitForExitOrKill(deployer.HostProcess);
103103

104104
try
105105
{
@@ -131,14 +131,14 @@ private static void SendSIGTERM(int processId)
131131
WaitForExitOrKill(process);
132132
}
133133

134-
private static void WaitForExitOrKill(Process process, int expectedExitCode = 0)
134+
private static void WaitForExitOrKill(Process process)
135135
{
136136
process.WaitForExit(5 * 1000);
137137
if (!process.HasExited)
138138
{
139139
process.Kill();
140140
}
141141

142-
Assert.Equal(expectedExitCode, process.ExitCode);
142+
Assert.Equal(0, process.ExitCode);
143143
}
144144
}

0 commit comments

Comments
 (0)