Skip to content

Commit 5524431

Browse files
committed
Fix GraphExecutorTests
1 parent ae5e5c2 commit 5524431

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NodeDev.Tests/GraphExecutorTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ public void TestTryCatchNode(SerializableBuildOptions options)
325325
graph.Connect(tryCatchNode.Outputs[1], catchReturnNode.Inputs[0], false);
326326

327327
var parseNode = new Core.Nodes.MethodCall(graph);
328-
parseNode.SetMethodTarget(typeof(int).GetMethod("Parse", new[] { typeof(string) })!);
328+
parseNode.SetMethodTarget(new RealMethodInfo(nodeClass.TypeFactory, typeof(int).GetMethod("Parse", new[] { typeof(string) })!, nodeClass.TypeFactory.Get<int>()));
329329
parseNode.Inputs[0].UpdateTextboxText("invalid");
330330
graph.AddNode(parseNode, false);
331331
graph.Connect(tryCatchNode.Outputs[0], parseNode.Inputs[0], false);

0 commit comments

Comments
 (0)