diff --git a/Assets/Mirror/Tests/Editor/TargetRpcTest.cs b/Assets/Mirror/Tests/Editor/TargetRpcTest.cs index af53d6428..1dd51ba42 100644 --- a/Assets/Mirror/Tests/Editor/TargetRpcTest.cs +++ b/Assets/Mirror/Tests/Editor/TargetRpcTest.cs @@ -105,7 +105,7 @@ public void ErrorForTargetRpcWithNoOwner() { Assert.Fail("Event should not be invoked with error"); }; - LogAssert.Expect(LogType.Error, $"TargetRPC System.Void Mirror.Tests.RemoteAttrributeTest.TargetRpcBehaviour::SendInt(System.Int32) was given a null connection, make sure the object has an owner or you pass in the target connection"); + LogAssert.Expect(LogType.Error, new Regex($".*was given a null connection.*")); serverComponent.SendInt(someInt); }