Skip to content

Commit 2f9274e

Browse files
committed
Fix GraphExecutorTests
1 parent 0436b51 commit 2f9274e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/NodeDev.Tests/GraphExecutorTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using NodeDev.Core;
22
using NodeDev.Core.Class;
33
using NodeDev.Core.Nodes.Flow;
4+
using NodeDev.Core.Types;
45
using System.Diagnostics;
56

67
namespace NodeDev.Tests;
@@ -177,7 +178,7 @@ public void TestTryCatchNode(SerializableBuildOptions options)
177178
graph.Connect(tryCatchNode.Outputs[1], catchReturnNode.Inputs[0], false);
178179

179180
var parseNode = new Core.Nodes.MethodCall(graph);
180-
parseNode.SetMethodTarget(typeof(int).GetMethod("Parse", new[] { typeof(string) })!);
181+
parseNode.SetMethodTarget(new RealMethodInfo(nodeClass.TypeFactory, typeof(int).GetMethod("Parse", new[] { typeof(string) })!, nodeClass.TypeFactory.Get<int>()));
181182
parseNode.Inputs[0].UpdateTextboxText("invalid");
182183
graph.AddNode(parseNode, false);
183184
graph.Connect(tryCatchNode.Outputs[0], parseNode.Inputs[0], false);

0 commit comments

Comments
 (0)