Skip to content

Commit

Permalink
[unity]ut超时延长到10s,减少失败的概率,fix #1698
Browse files Browse the repository at this point in the history
  • Loading branch information
chexiongsheng committed Apr 15, 2024
1 parent 0df3ee0 commit 11644ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unity/cli/test.mts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ async function runTest(cwd: string, copyConfig: any, runInReflection: boolean, f

// 运行测试
assert.equal(0, exec(`dotnet build ${testProjectName}.csproj -p:StartupObject=PuertsTest -v quiet`, { cwd: workdir }).code)
assert.equal(0, exec(`dotnet test ${testProjectName}.csproj --blame-hang-timeout 5000ms ${filter ? `--filter ${filter}` : ''}`, { cwd: workdir }).code)
assert.equal(0, exec(`dotnet test ${testProjectName}.csproj --blame-hang-timeout 10000ms ${filter ? `--filter ${filter}` : ''}`, { cwd: workdir }).code)
}

export async function dotnetTest(cwd: string, backend: string, filter: string = '') {
Expand Down

0 comments on commit 11644ed

Please sign in to comment.