# HG changeset patch # User Zdenek Zambersky # Date 1478021381 -3600 # Node ID 381a7ea97aac298950f8decd221b85772ce43eee # Parent e0764349b13484b87f37b67bd669154cedaf81df Increased delays after thermostat agent and service start, added/increased sleeps on potentialy problematic places ( problems on beaker machines, todo: find better solution ) diff -r e0764349b134 -r 381a7ea97aac src/org/thermostat/qa2/framework/services/ThermostatAgent.java --- a/src/org/thermostat/qa2/framework/services/ThermostatAgent.java Tue Sep 27 18:45:47 2016 +0200 +++ b/src/org/thermostat/qa2/framework/services/ThermostatAgent.java Tue Nov 01 18:29:41 2016 +0100 @@ -65,7 +65,7 @@ public void startServiceImpl() throws Exception { super.startServiceImpl(); waitForListeningPort(port, timeout, true); - CommonUtilities.sleep(3000); // wait 3 more seconds + CommonUtilities.sleep(10000); // wait 10 more seconds } } diff -r e0764349b134 -r 381a7ea97aac src/org/thermostat/qa2/framework/services/ThermostatService.java --- a/src/org/thermostat/qa2/framework/services/ThermostatService.java Tue Sep 27 18:45:47 2016 +0200 +++ b/src/org/thermostat/qa2/framework/services/ThermostatService.java Tue Nov 01 18:29:41 2016 +0100 @@ -31,6 +31,7 @@ package org.thermostat.qa2.framework.services; import org.thermostat.qa2.framework.ThermostatQAConfig; +import org.thermostat.qa2.framework.utils.CommonUtilities; import org.thermostat.qa2.framework.utils.ThermostatUtilities; /** @@ -64,5 +65,6 @@ public void startServiceImpl() throws Exception { super.startServiceImpl(); waitForListeningPort(port, timeout, true); + CommonUtilities.sleep(10000); // wait 10 more seconds } } diff -r e0764349b134 -r 381a7ea97aac src/org/thermostat/qa2/tests/AgentSaveOnExitTest.java --- a/src/org/thermostat/qa2/tests/AgentSaveOnExitTest.java Tue Sep 27 18:45:47 2016 +0200 +++ b/src/org/thermostat/qa2/tests/AgentSaveOnExitTest.java Tue Nov 01 18:29:41 2016 +0100 @@ -69,6 +69,7 @@ assertNull(heapDump, "there should not be any heap dump yet"); ThermostatUtilities.dumpHeap(target1, hostId, vmId); + CommonUtilities.sleep(5000); heapDump = ThermostatUtilities.getHeapDumpLine(target1, hostId, vmId); assertNotNull(heapDump, "there should be heap dump in db"); @@ -120,6 +121,7 @@ ThermostatUtilities.profileVm(target1, hostId, vmId, "start"); CommonUtilities.sleep(5000); ThermostatUtilities.profileVm(target1, hostId, vmId, "stop"); + CommonUtilities.sleep(5000); profileOutput = ThermostatUtilities.profileVm(target1, hostId, vmId, "show"); assertTrue(containsProfilingData(profileOutput), "there should be profiling data in db"); diff -r e0764349b134 -r 381a7ea97aac src/org/thermostat/qa2/tests/ShellCommandsTest.java --- a/src/org/thermostat/qa2/tests/ShellCommandsTest.java Tue Sep 27 18:45:47 2016 +0200 +++ b/src/org/thermostat/qa2/tests/ShellCommandsTest.java Tue Nov 01 18:29:41 2016 +0100 @@ -69,7 +69,7 @@ String hostId = lineParts[0]; String vmId = lineParts[2]; ThermostatUtilities.dumpHeap(hostId, vmId); - + CommonUtilities.sleep(5000); String line = ThermostatUtilities.findLastHeapDump(hostId, vmId); assertNotNull(line, "there should be heap dump in db"); lineParts = line.split(" "); @@ -160,7 +160,7 @@ String vmId = lineParts[2]; ThermostatUtilities.killVm(hostId, vmId); - CommonUtilities.sleep(2000); + CommonUtilities.sleep(10000); line = ThermostatUtilities.getRunningVmLine(infiniteLoopClass); assertNull(line, infiniteLoopClass + " should not be in vm list"); @@ -177,6 +177,7 @@ String heapId = dumpTestSuiteHeap(); ThermostatUtilities.saveHeapDumpToFile(heapId, file); + CommonUtilities.sleep(5000); assertTrue(new File(file).exists(), "heap dump file (" + file + ") should exist"); FileUtilities.removeFile(file); }