From fe74a02e5c19152f7ea36b81333e4db41c1d0964 Mon Sep 17 00:00:00 2001 From: katarinagud Date: Mon, 21 Oct 2024 16:00:34 +0200 Subject: [PATCH] these should not be async --- .../and_datavalue_received_then_cancelled.cs | 2 +- .../and_exception_thrown_from_handlevalue.cs | 2 +- .../and_exception_thrown_from_readvalueasync.cs | 2 +- .../from_multiple_nodes_with_different_readinterval.cs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Specifications/for_Reader/when_reading_nodes_forever/and_datavalue_received_then_cancelled.cs b/Specifications/for_Reader/when_reading_nodes_forever/and_datavalue_received_then_cancelled.cs index 2f9d372..79dd7ba 100644 --- a/Specifications/for_Reader/when_reading_nodes_forever/and_datavalue_received_then_cancelled.cs +++ b/Specifications/for_Reader/when_reading_nodes_forever/and_datavalue_received_then_cancelled.cs @@ -17,7 +17,7 @@ public class and_datavalue_received_then_cancelled : given.a_reader static IEnumerable<(NodeId node, TimeSpan readInterval)> nodes; static List handled_values; - Establish context = async () => + Establish context = () => { nodes = [(new NodeId(321), TimeSpan.FromSeconds(1))]; diff --git a/Specifications/for_Reader/when_reading_nodes_forever/and_exception_thrown_from_handlevalue.cs b/Specifications/for_Reader/when_reading_nodes_forever/and_exception_thrown_from_handlevalue.cs index 3537fdf..abdca5e 100644 --- a/Specifications/for_Reader/when_reading_nodes_forever/and_exception_thrown_from_handlevalue.cs +++ b/Specifications/for_Reader/when_reading_nodes_forever/and_exception_thrown_from_handlevalue.cs @@ -16,7 +16,7 @@ public class and_exception_thrown_from_handlevalue : given.a_reader static IEnumerable<(NodeId node, TimeSpan readInterval)> nodes; static CancellationToken ct; - Establish context = async () => + Establish context = () => { nodes = [ (new NodeId(321), TimeSpan.FromSeconds(1)), diff --git a/Specifications/for_Reader/when_reading_nodes_forever/and_exception_thrown_from_readvalueasync.cs b/Specifications/for_Reader/when_reading_nodes_forever/and_exception_thrown_from_readvalueasync.cs index b7b4d23..0fdaa4e 100644 --- a/Specifications/for_Reader/when_reading_nodes_forever/and_exception_thrown_from_readvalueasync.cs +++ b/Specifications/for_Reader/when_reading_nodes_forever/and_exception_thrown_from_readvalueasync.cs @@ -16,7 +16,7 @@ public class and_exception_thrown_from_readvalueasync : given.a_reader static IEnumerable<(NodeId node, TimeSpan readInterval)> nodes; static CancellationToken ct; - Establish context = async () => + Establish context = () => { nodes = [ (new NodeId(321), TimeSpan.FromSeconds(1)), diff --git a/Specifications/for_Reader/when_reading_nodes_forever/from_multiple_nodes_with_different_readinterval.cs b/Specifications/for_Reader/when_reading_nodes_forever/from_multiple_nodes_with_different_readinterval.cs index fb84500..bfe28b7 100644 --- a/Specifications/for_Reader/when_reading_nodes_forever/from_multiple_nodes_with_different_readinterval.cs +++ b/Specifications/for_Reader/when_reading_nodes_forever/from_multiple_nodes_with_different_readinterval.cs @@ -17,7 +17,7 @@ public class from_multiple_nodes_with_different_readinterval : given.a_reader static IEnumerable<(NodeId node, TimeSpan readInterval)> nodes; static List handled_values; - Establish context = async () => + Establish context = () => { nodes = [ (new NodeId(321), TimeSpan.FromSeconds(1)),