planetarium / libplanet

Blockchain in C#/.NET for on-chain, decentralized gaming
https://docs.libplanet.io/
GNU Lesser General Public License v2.1
506 stars 142 forks source link

Libplanet.Tests.Net.SwarmTest hangs (MacOS 10.15, dotnet3.0, dotnet2.2) #653

Closed minhoryang closed 4 years ago

minhoryang commented 4 years ago
$ git describe
0.6.0-229-g0040d740
$ dotnet --info
.NET Core SDK(global.json 반영):
 Version:   3.0.100
 Commit:    04339c3a26

런타임 환경:
 OS Name:     Mac OS X
 OS Version:  10.15
 OS Platform: Darwin
 RID:         osx.10.15-x64
 Base Path:   /usr/local/share/dotnet/sdk/3.0.100/

Host (useful for support):
  Version: 3.0.0
  Commit:  7d57652f33

.NET Core SDKs installed:
  2.2.402 [/usr/local/share/dotnet/sdk]
  3.0.100 [/usr/local/share/dotnet/sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.All 2.2.7 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.2.7 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.0.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.2.7 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.0.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
  https://aka.ms/dotnet-download
$ dotnet msbuild -version; echo;
.NET Core용 Microsoft (R) Build Engine 버전 16.3.0+0f4c62fea
Copyright (C) Microsoft Corporation. All rights reserved.

16.3.0.46305

$ dotnet test -r out -v d --diag:log.txt --filter "Category=SwarmTest"

Used Libplanet.Tests/xunit.runner.mono.json (Condition bypassed)

{
  "$schema": "https://xunit.github.io/schema/current/xunit.runner.schema.json",
  "appDomain": "denied",
  "diagnosticMessages": true,
  "longRunningTestSeconds": 1,
  "maxParallelThreads": 1,
  "parallelizeAssembly": false,
  "parallelizeTestCollections": false
}

Attachments: dotnet_test.stdout.txt log.host.19-11-06_01-37-51_46025_4.txt log.txt

earlbread commented 4 years ago

The hang caused by NetMQConfig.Cleanup. This is probably related to macOS Catalina and https://github.com/dotnet/corefx/issues/39617.