Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-2511

BSON test fails on MacOS in .NET Core

    • Type: Icon: Improvement Improvement
    • Resolution: Cannot Reproduce
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: BSON, Testing
    • Labels:

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

      Unable to find source-code formatter for language: shell. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      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$
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            vincent.kam@mongodb.com Vincent Kam (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: