Mercurial > hg > ThermostatQA
changeset 206:381a7ea97aac default tip
Increased delays after thermostat agent and service start, added/increased sleeps on potentialy problematic places ( problems on beaker machines, todo: find better solution )
author | Zdenek Zambersky <zzambers@redhat.com> |
---|---|
date | Tue, 01 Nov 2016 18:29:41 +0100 |
parents | e0764349b134 |
children | |
files | src/org/thermostat/qa2/framework/services/ThermostatAgent.java src/org/thermostat/qa2/framework/services/ThermostatService.java src/org/thermostat/qa2/tests/AgentSaveOnExitTest.java src/org/thermostat/qa2/tests/ShellCommandsTest.java |
diffstat | 4 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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 } }
--- 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 } }
--- 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");
--- 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); }