From c63e8cf7d71c9423bb5f7f00f69fb13b087f4a84 Mon Sep 17 00:00:00 2001 From: Chun-Wei Chen Date: Tue, 1 Dec 2020 15:58:12 -0800 Subject: [PATCH] Remove chronological starttime assertion in InferenceTest.cs because it is not determined (#5976) * remove chronological starttime assertion because it is not determined * use different vars --- .../Microsoft.ML.OnnxRuntime.Tests/InferenceTest.cs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/csharp/test/Microsoft.ML.OnnxRuntime.Tests/InferenceTest.cs b/csharp/test/Microsoft.ML.OnnxRuntime.Tests/InferenceTest.cs index b434361549..caab17bb47 100644 --- a/csharp/test/Microsoft.ML.OnnxRuntime.Tests/InferenceTest.cs +++ b/csharp/test/Microsoft.ML.OnnxRuntime.Tests/InferenceTest.cs @@ -446,17 +446,11 @@ namespace Microsoft.ML.OnnxRuntime.Tests return startTime; } - // Get 1st profiling's start time - ulong startTime1 = getSingleSessionProfilingStartTime(); - // Get 2nd profiling's start time - ulong startTime2 = getSingleSessionProfilingStartTime(); - // Get 3rd profiling's start time - ulong startTime3 = getSingleSessionProfilingStartTime(); + // Get profiling's start time + ulong ProfilingStartTime = getSingleSessionProfilingStartTime(); // Check the profiling's start time has been updated - Assert.True(startTime1 != 0); - // Chronological profiling's start time - Assert.True(startTime1 <= startTime2 && startTime2 <= startTime3); + Assert.True(ProfilingStartTime != 0); } [Fact]