Skip to content

Commit 69e1684

Browse files
author
Chris Elion
committed
fix unit test
1 parent 1cec320 commit 69e1684

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

com.unity.ml-agents/Tests/Editor/PublicAPI/PublicApiValidation.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ public void CheckSetupAgent()
102102
var agent = gameObject.AddComponent<PublicApiAgent>();
103103
// Make sure we can set the behavior type correctly after the agent is added
104104
behaviorParams.behaviorType = BehaviorType.InferenceOnly;
105+
// Can't actually create an Agent with InferenceOnly and no model, so change back
106+
behaviorParams.behaviorType = BehaviorType.Default;
105107

106108
// TODO - not internal yet
107109
// var decisionRequester = gameObject.AddComponent<DecisionRequester>();

0 commit comments

Comments
 (0)