* Fix test
This commit is contained in:
jhkimnew 2018-03-07 18:09:22 -08:00 коммит произвёл GitHub
Родитель 3d4fbebd2c
Коммит 20ed4409ab
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 12 добавлений и 3 удалений

Просмотреть файл

@ -446,7 +446,12 @@ namespace AspNetCoreModule.Test.Framework
succeeded = true;
break;
}
backendProcess.WaitForExit(1000);
if (backendProcess.WaitForExit(1000))
{
succeeded = true;
break;
}
if (this.IisServerType == ServerType.IISExpress && i == 3)
{

Просмотреть файл

@ -426,7 +426,8 @@ namespace AspNetCoreModule.Test
[OSSkipCondition(OperatingSystems.MacOSX)]
[OSSkipCondition(OperatingSystems.Windows, WindowsVersions.Win7, SkipReason = "IIS does not support Websocket on Win7")]
[InlineData(IISConfigUtility.AppPoolBitness.enable32Bit, "ab")]
[InlineData(IISConfigUtility.AppPoolBitness.noChange, "abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789")]
//[InlineData(IISConfigUtility.AppPoolBitness.noChange, "abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789")]
[InlineData(IISConfigUtility.AppPoolBitness.noChange, "abcdefghijklmnopqrstuvwxyz0123456789")]
public Task V21_WebSocketRecycledWithConfigChangeTest(IISConfigUtility.AppPoolBitness appPoolBitness, string testData)
{
return DoWebSocketRecycledWithConfigChangeTest(appPoolBitness, testData);

Просмотреть файл

@ -1854,7 +1854,7 @@ namespace AspNetCoreModule.Test
Thread.Sleep(500);
VerifySendingWebSocketData(websocketClient, testData);
Thread.Sleep(500);
Thread.Sleep(1000);
using (var iisConfig = new IISConfigUtility(testSite.IisServerType, testSite.IisExpressConfigPath))
{
@ -1873,6 +1873,9 @@ namespace AspNetCoreModule.Test
Assert.Contains("ClosingFromServer", websocketClient.Connection.DataReceived[lastIndex].TextData);
testSite.VerifyWorkerProcessRecycledUnderInprocessMode(recycledProcessId);
Thread.Sleep(500);
await SendReceive(testSite.AspNetCoreApp.GetUri(), expectedResponseBody: "Running");
}
}