Skip to content

Commit 2869ff2

Browse files
jsuarezruizCopilot
andauthored
Update src/Controls/tests/TestCases.Shared.Tests/UITest.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 748171b commit 2869ff2

File tree

1 file changed

+2
-2
lines changed
  • src/Controls/tests/TestCases.Shared.Tests

1 file changed

+2
-2
lines changed

src/Controls/tests/TestCases.Shared.Tests/UITest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,8 +386,8 @@ double ExtractDifferencePercentage(Exception ex)
386386
}
387387
}
388388

389-
// If can't extract specific percentage, assume significant difference
390-
return 1.0;
389+
// If can't extract specific percentage, throw an exception to indicate failure
390+
throw new InvalidOperationException("Unable to extract difference percentage from exception message.");
391391
}
392392

393393
protected void VerifyInternetConnectivity()

0 commit comments

Comments
 (0)