[CSHARP-2511] BSON test fails on MacOS in .NET Core Created: 11/Feb/19  Updated: 08/Feb/22  Resolved: 08/Feb/22

Status: Closed
Project: C# Driver
Component/s: BSON, Testing
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Vincent Kam (Inactive) Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: new-eng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The MongoDB.Bson.Tests.Jira.CSharp275Tests.TestParseDates test fails on MacOS in .NET Core.

MacBook Pro (9001):MongoDB.Bson.Tests$ dotnet test -f netcoreapp2.1
Microsoft (R) Build Engine version 15.7.179.6572 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
 
  Restore completed in 62.79 ms for mongo-csharp-driver/testsmongoDB.Bson.TestsmongoDB.Bson.Tests.csproj.
  Restore completed in 62.78 ms for mongo-csharp-driver/testsmongoDB.Bson.TestHelpersmongoDB.Bson.TestHelpers.csproj.
  Restore completed in 62.7 ms for mongo-csharp-driver/srcmongoDB.BsonmongoDB.Bson.csproj.
Build started, please wait...
Build completed.
 
Test run for mongo-csharp-driver/testsmongoDB.Bson.Tests/bin/Debug/netcoreapp2.1mongoDB.Bson.Tests.dll(.NETCoreApp,Version=v2.1)
Microsoft (R) Test Execution Command Line Tool Version 15.7.0
Copyright (c) Microsoft Corporation.  All rights reserved.
 
Starting test execution, please wait...
[xUnit.net 00:00:02.67]     MongoDB.Bson.Tests.Jira.CSharp275Tests.TestParseDates [FAIL]
Failed   MongoDB.Bson.Tests.Jira.CSharp275Tests.TestParseDates
Error Message:
 MongoDB.Bson.TestHelpers.XunitExtensions.AssertionException : Parsing new Date("Mon, 10 Oct 2011 11:22:33 A") did not yield expected result 2011-10-10T12:22:33.0000000Z.
Stack Trace:
   at MongoDB.Bson.Tests.Jira.CSharp275Tests.TestParseDates() in mongo-csharp-driver/testsmongoDB.Bson.Tests/Jira/CSharp275Tests.cs:line 142
[xUnit.net 00:00:02.93]     MongoDB.Bson.Tests.IO.BsonBinaryReaderTests.BsonBinaryReader_should_support_reading_more_than_2GB [SKIP]
Skipped  MongoDB.Bson.Tests.IO.BsonBinaryReaderTests.BsonBinaryReader_should_support_reading_more_than_2GB
 
Total tests: 6780. Passed: 6778. Failed: 1. Skipped: 1.
Test Run Failed.
Test execution time: 13.9821 Seconds
MacBook Pro (9001):MongoDB.Bson.Tests$



 Comments   
Comment by James Kovacs [ 08/Feb/22 ]

Our test suite - including Csharp275Tests - runs successfully on MacOS using both .NET Core 2.1 and 3.1. This no longer appears to be an issue.

Generated at Wed Feb 07 21:42:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.