Skip to content

Commit e30ea31

Browse files
committed
Disable console logs in the prefab workflow tests.
1 parent 0564fde commit e30ea31

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Assets/Tests/Editor/NavMeshSurfaceInPrefabTests.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//#define KEEP_ARTIFACTS_FOR_INSPECTION
2+
//#define ENABLE_TEST_LOGS
23

34
using System;
45
using System.Collections;
@@ -111,9 +112,11 @@ static void TestNavMeshExistsAloneAtPosition(int expectedArea, Vector3 pos)
111112
{
112113
var expectedAreaMask = 1 << expectedArea;
113114

115+
#if ENABLE_TEST_LOGS
114116
var areaExists = HasNavMeshAtPosition(pos, expectedAreaMask);
115117
var otherAreasExist = HasNavMeshAtPosition(pos, ~expectedAreaMask);
116-
Debug.Log(" mask=" + expectedAreaMask.ToString("x8") + " area " + expectedArea + " Exists=" + areaExists + " otherAreasExist=" + otherAreasExist + " at position " + pos);
118+
Debug.Log(" mask=" + expectedAreaMask.ToString("x8") + " area " + expectedArea +
119+
" Exists=" + areaExists + " otherAreasExist=" + otherAreasExist + " at position " + pos);
117120
if (otherAreasExist)
118121
{
119122
for (var i = 0; i < 32; i++)
@@ -128,7 +131,7 @@ static void TestNavMeshExistsAloneAtPosition(int expectedArea, Vector3 pos)
128131
}
129132
}
130133
}
131-
134+
#endif
132135
Assert.IsTrue(HasNavMeshAtPosition(pos, expectedAreaMask), "Expected NavMesh with area {0} at position {1}.", expectedArea, pos);
133136
Assert.IsFalse(HasNavMeshAtPosition(pos, ~expectedAreaMask), "A NavMesh with an area other than {0} exists at position {1}.", expectedArea, pos);
134137
}

0 commit comments

Comments
 (0)