Index: src/Deltares.DSoilModel.Forms.Tests/DSoilModelPluginTests.cs =================================================================== diff -u -r412 -r413 --- src/Deltares.DSoilModel.Forms.Tests/DSoilModelPluginTests.cs (.../DSoilModelPluginTests.cs) (revision 412) +++ src/Deltares.DSoilModel.Forms.Tests/DSoilModelPluginTests.cs (.../DSoilModelPluginTests.cs) (revision 413) @@ -1,5 +1,5 @@ -using System.Diagnostics; -using System.Linq; +using System.Linq; +using System.Threading; using Deltares.DSoilModel.Data; using Deltares.Geometry.Forms; using Deltares.Geotechnics.Forms; @@ -34,12 +34,10 @@ mainForm.Register(plugin); mainForm.Visible = true; mainForm.CreateControl(); - - // wait for the plugin & mainform to complete initialization - var s = new Stopwatch(); - s.Start(); - while (s.Elapsed.Seconds < 30 && !mainForm.IsMainFormLoaded) + + while (!mainForm.IsMainFormLoaded) { + Thread.Sleep(1000); Application.DoEvents(); } } @@ -93,6 +91,5 @@ return p.Project; } - } }