[CSHARP-1143] Investigate Test Hangs Created: 05/Dec/14  Updated: 16/Jun/16  Resolved: 16/Jun/16

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

Type: Task Priority: Critical - P2
Reporter: Craig Wilson Assignee: Robert Stam
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

See here for example: https://travis-ci.org/mongodb/mongo-csharp-driver/builds/43129318#L251



 Comments   
Comment by Robert Stam [ 16/Jun/16 ]

No longer relevant.

Comment by Jeffrey Yemin [ 16/Jun/16 ]

Can we close this now that we're no longer using NUnit?

Comment by Robert Stam [ 08/Apr/15 ]

Submitted an issue in the NUnit project on github:

https://github.com/nunit/nunit/issues/573

The issue appears to be related to using NSubstitute, but works fine on Windows.

This can be reproduced using the following project with a single test:

using System.IO;
using NSubstitute;
using NUnit.Framework;
 
namespace TestNUnitConsoleHang
{
    [TestFixture]
    public class TestClass
    {
        [Test]
        public void TestNSubstitue()
        {
            using (var stream = Substitute.For<Stream>())
            {
                Assert.IsNotNull(stream);
            }
        }
    }
}

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