Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ protected override void Start() {
logFunc: DebugLog
);

// Some of the AI tests tend to take a bit longer, so increase the timeout.
testRunner.TestTimeoutSeconds = 120f;
Comment on lines +123 to +124
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Consider defining the test timeout as a constant to improve maintainability and readability. This also avoids magic numbers in the code.1

 const float kTestTimeoutSeconds = 120f; // Some of the AI tests tend to take a bit longer, so increase the timeout. testRunner.TestTimeoutSeconds = kTestTimeoutSeconds;

Style Guide References

Footnotes

  1. Magic numbers should be replaced with named constants. (link)


base.Start();
}

Expand Down