Skip to content

Commit

Permalink
Change monkey test running time
Browse files Browse the repository at this point in the history
  • Loading branch information
nowsprinting committed Oct 15, 2023
1 parent af67d55 commit 9ddae61
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Assets/InputSystemExample/Tests/Runtime/MonkeyTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ namespace InputSystemExample
{
/// <summary>
/// <c>Unity.InputSystem.TestFramework</c> を使用したモンキーテスト.
///
/// 一定時間でたらめな操作をします。
/// テスト失敗と判断されるのは次の2パターン
/// - ログにエラー(プロダクトコードに仕込んだ <c>UnityEngine.Assertions.Assert</c> を含む)が出力されたとき
Expand Down Expand Up @@ -61,7 +60,7 @@ public async Task MonkeyTesting()
PressKeys(new RandomWrapper(random.Next()), tokenSource.Token).Forget();
MoveMouse(new RandomWrapper(random.Next()), tokenSource.Token).Forget();

var expireTime = Time.time + 60.0f; // 1分間動作させる
var expireTime = Time.time + 10.0f; // 10秒間動作させる(3分以上にする場合はTimeout属性でタイムアウト時間を延長)
while (Time.time < expireTime)
{
var nowLocation = controller.transform.position;
Expand Down

0 comments on commit 9ddae61

Please sign in to comment.