[
https://issues.apache.org/jira/browse/IGNITE-24198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17925473#comment-17925473
]
Pavel Tupitsyn commented on IGNITE-24198:
-----------------------------------------
Merged to main:
https://github.com/apache/ignite-3/commit/cd2ebd33dd55509d0a8c186b0c4c71d404047f44
> .NET: Thin 3.0: Compute tests fail on some locales
> --------------------------------------------------
>
> Key: IGNITE-24198
> URL: https://issues.apache.org/jira/browse/IGNITE-24198
> Project: Ignite
> Issue Type: Bug
> Components: platforms, thin client
> Reporter: Pavel Tupitsyn
> Assignee: Pavel Tupitsyn
> Priority: Major
> Labels: .NET, ignite-3
> Fix For: 3.1
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> {code}
> Failed TestAllSupportedArgTypes [425 ms]
> Error Message:
> String lengths are both 13. Strings differ at index 2.
> Expected: "-3,4028235E38"
> But was: "-3.4028235E38"
> -------------^
> Stack Trace:
> at
> Apache.Ignite.Tests.Compute.ComputeTests.<TestAllSupportedArgTypes>g__Test|28_0(Object
> val, String expectedStr) in
> C:\Work\ignite-3\modules\platforms\dotnet\Apache.Ignite.Tests\Compute\ComputeTests.cs:line
> 276
> at Apache.Ignite.Tests.Compute.ComputeTests.TestAllSupportedArgTypes() in
> C:\Work\ignite-3\modules\platforms\dotnet\Apache.Ignite.Tests\Compute\ComputeTests.cs:line
> 235
> {code}
> Caused by:
> {code}
> var expectedStr0 = expectedStr ?? val.ToString()!.Replace("E+", "E");
> {code}
> We should use *InvariantCulture* when converting *IFormattable* to string.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)