netmq icon indicating copy to clipboard operation
netmq copied to clipboard

Multiple failing unit tests

Open jasells opened this issue 4 years ago • 1 comments

Environment

NetMQ Version:    latest master branch (debug)
Operating System: Win10
.NET Version:     all

Expected behaviour

Unit tests run and pass

Actual behaviour

Many tests fail

Steps to reproduce the behaviour

Run unit tests.

Is this expected on the current master branch?

**update: it does appear to only occur for debug build, so I assume that unit tests are not typically run in debug. The root of most of the failures seem to be the Assumes.NotNull() helper for asserts being misplaced. So, though it is not failing on release builds, it is possibly not executing as expected.

Example: NetMqPollerTest.RemoveSocket() hits M-handle null check before it is ever created:

public virtual void SetAddress(string addr)
        {
            m_address.Resolve(addr, m_options.IPv4Only);

            Assumes.NotNull(m_address.Address);
            Assumes.NotNull(m_handle);

            try
            {
                m_handle = AsyncSocket.Create(m_address.Address.AddressFamily, SocketType.Stream, ProtocolType.Tcp);

Src link.

jasells avatar Dec 31 '20 18:12 jasells

This issue has been automatically marked as stale because it has not had activity for 365 days. It will be closed if no further activity occurs within 56 days. Thank you for your contributions.

stale[bot] avatar Apr 17 '22 03:04 stale[bot]