public void TearDown() { try { TestUtils.AssertHandleRegistryIsEmpty(1000, _grid1, _grid2, _grid3); MessagingTestHelper.AssertFailures(); } finally { // Stop all grids between tests to drop any hanging messages Ignition.StopAll(true); } }
public void TearDown() { try { TestUtils.AssertHandleRegistryIsEmpty(1000, _grid1, _grid2, _grid3); } catch (Exception) { // Restart grids to cleanup StopGrids(); throw; } finally { EventsTestHelper.AssertFailures(); if (TestContext.CurrentContext.Test.Name.StartsWith("TestEventTypes")) { StopGrids(); // clean events for other tests } } }