Skip to content

Commit 79fb190

Browse files
committed
test(logs): fix floating-point ToString expectation for .NET Framework
1 parent bc1c465 commit 79fb190

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Sentry.Tests/SentryLogTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public void WriteTo_EnvelopeItem_MaximalSerializedSentryLog()
163163
"type": "integer"
164164
},
165165
"sentry.message.parameter.3": {
166-
"value": 2.2,
166+
"value": {{2.2.ToString(NumberFormatInfo.InvariantInfo)/*.NET Core 3.0+ returns the shortest roundtrippable string https://devblogs.microsoft.com/dotnet/floating-point-parsing-and-formatting-improvements-in-net-core-3-0/*/}},
167167
"type": "double"
168168
},
169169
"string-attribute": {
@@ -179,7 +179,7 @@ public void WriteTo_EnvelopeItem_MaximalSerializedSentryLog()
179179
"type": "integer"
180180
},
181181
"double-attribute": {
182-
"value": 4.4,
182+
"value": {{4.4.ToString(NumberFormatInfo.InvariantInfo)/*.NET Core 3.0+ returns the shortest roundtrippable string https://devblogs.microsoft.com/dotnet/floating-point-parsing-and-formatting-improvements-in-net-core-3-0/*/}},
183183
"type": "double"
184184
},
185185
"sentry.environment": {

0 commit comments

Comments
 (0)