summaryrefslogtreecommitdiff
path: root/test/netstd/Client/Performance/PerformanceTests.cs
diff options
context:
space:
mode:
Diffstat (limited to 'test/netstd/Client/Performance/PerformanceTests.cs')
-rw-r--r--test/netstd/Client/Performance/PerformanceTests.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/netstd/Client/Performance/PerformanceTests.cs b/test/netstd/Client/Performance/PerformanceTests.cs
index 2c79aa6ef..f9eb9e4e4 100644
--- a/test/netstd/Client/Performance/PerformanceTests.cs
+++ b/test/netstd/Client/Performance/PerformanceTests.cs
@@ -28,6 +28,8 @@ using System.Threading.Tasks;
using System.Diagnostics;
using Thrift.Transport;
+#pragma warning disable CS1998 // no await in async method
+
namespace Client.Tests
{
public class PerformanceTests
@@ -37,9 +39,9 @@ namespace Client.Tests
private TMemoryBufferTransport MemBuffer;
private TTransport Transport;
private LayeredChoice Layered;
- private readonly TConfiguration Configuration = new TConfiguration();
+ private readonly TConfiguration Configuration = new();
- internal static int Execute()
+ internal static async Task<int> Execute()
{
var instance = new PerformanceTests();
instance.ProtocolPeformanceTestAsync().Wait();