Unity 2017.3.1f1 Cloud Build Deadlock with Unit Testing and .NET 4.6

Hello!

All builds for a project I own using the experimentalnet 4.6 with Unit Testing and 2017.3.1f1 seem to deadlock after certain steps in Unity Cloud build, causing a lot of the builds to be canceled due to running for too long. The last log message sent before it deadlocks is “Cleanup mono” and it is always happens when it is trying to run unit tests.
If I disable Automated Unit Testing It is working ok. There is default settings for run Unit Test “UnityTest.Batch.RunUnitTests”. Do I need to change it to something else maybe?

Probably it is related to:

Any ideas?

This is a bug in Unity Editor.

Here is the link to issue: https://issuetracker.unity3d.com/is...ine-argument-doesnt-close-unity-automatically