From f86708a812e78a4fc9ff4f10322b416e9fcf6924 Mon Sep 17 00:00:00 2001 From: John Date: Mon, 5 Jul 2021 15:28:20 +0100 Subject: [PATCH] Fix run payload checking logic --- .../Source/TestEngine/TestImpactTestEngineInstrumentedRun.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Code/Tools/TestImpactFramework/Runtime/Code/Source/TestEngine/TestImpactTestEngineInstrumentedRun.cpp b/Code/Tools/TestImpactFramework/Runtime/Code/Source/TestEngine/TestImpactTestEngineInstrumentedRun.cpp index e1e230b3a7..bade8fef81 100644 --- a/Code/Tools/TestImpactFramework/Runtime/Code/Source/TestEngine/TestImpactTestEngineInstrumentedRun.cpp +++ b/Code/Tools/TestImpactFramework/Runtime/Code/Source/TestEngine/TestImpactTestEngineInstrumentedRun.cpp @@ -15,7 +15,7 @@ namespace TestImpact { AZStd::optional ReleaseTestRun(AZStd::optional, TestCoverage>>& testRunAndCoverage) { - if (testRunAndCoverage.has_value() && testRunAndCoverage.has_value()) + if (testRunAndCoverage.has_value() && testRunAndCoverage->first.has_value()) { return AZStd::move(testRunAndCoverage.value().first); }