Skip to content

Commit 04653e8

Browse files
maryamhonariRuo-Ping Dong
and
Ruo-Ping Dong
authored
[Cherrypick] Fix test failures on trunk with input system 1.1.1 (#5542) to 2.0.1 verified (#5608)
* Fix test failures on trunk with input system 1.1.1 (#5542) * Update changeLog Co-authored-by: Ruo-Ping Dong <ruoping.dong@unity3d.com>
1 parent 30be112 commit 04653e8

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

com.unity.ml-agents.extensions/Tests/Runtime/Input/InputActuatorComponentTests.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ public override void Setup()
4949
public override void TearDown()
5050
{
5151
m_ActuatorComponent.CleanupActionAsset();
52+
var objects = GameObject.FindObjectsOfType<GameObject>();
53+
foreach (var o in objects)
54+
{
55+
UnityEngine.Object.DestroyImmediate(o);
56+
}
5257
base.TearDown();
5358
}
5459

com.unity.ml-agents/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ and this project adheres to
1818
### Bug Fixes
1919
#### com.unity.ml-agents / com.unity.ml-agents.extensions (C#)
2020
- Fixed the bug where curriculum learning would crash because of the incorrect run_options parsing. (#5586)
21+
- Fixed tests with input system package upgrade from 1.1.0 to 1.1.1. (#5542)
2122
#### ml-agents / ml-agents-envs / gym-unity (Python)
2223

2324
## [2.0.0] - 2021-09-01

0 commit comments

Comments
 (0)