Skip to content
This repository was archived by the owner on Aug 10, 2021. It is now read-only.

Commit 4b24be2

Browse files
committed
Don't fail test based on log messages
1 parent a46d128 commit 4b24be2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Tests/Runtime/GameEvents/GameEventTest.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
using NUnit.Framework;
1313
using UnityEngine;
1414
using UnityEngine.Events;
15+
using UnityEngine.TestTools;
1516
using Assert = UnityEngine.Assertions.Assert;
1617

1718
namespace GameEvents
@@ -122,6 +123,8 @@ public void ShouldRaiseGameEventEvent()
122123
[Test]
123124
public void ShouldNotBreakChainWhenExceptionIsThrown()
124125
{
126+
LogAssert.ignoreFailingMessages = true;
127+
125128
// Given.
126129
var gameObject = new UnityEngine.GameObject();
127130
gameObject.SetActive(false);

0 commit comments

Comments
 (0)