Skip to content
Snippets Groups Projects
Commit 24b54e7e authored by MJB's avatar MJB
Browse files

set test package back to clmctest so the module can be installed, added delay...

set test package back to clmctest so the module can be installed, added delay to the test_e2eresults.py so that the aggregator has time to process the final measurements
parent 0b3760c3
No related branches found
No related tags found
No related merge requests found
...@@ -55,7 +55,7 @@ class TestE2ESimulation(object): ...@@ -55,7 +55,7 @@ class TestE2ESimulation(object):
e2e_simulator.run() e2e_simulator.run()
print("Waiting for INFLUX to finish receiving simulation data...") print("Waiting for INFLUX to finish receiving simulation data...")
time.sleep(e2e_simulator.SIMULATION_LENGTH) # wait for data to finish arriving at the INFLUX database time.sleep(e2e_simulator.SIMULATION_LENGTH+10) # wait for data to finish arriving at the INFLUX database
print("... simulation data fixture finished") print("... simulation data fixture finished")
print("... stopping aggregator") print("... stopping aggregator")
...@@ -95,6 +95,8 @@ class TestE2ESimulation(object): ...@@ -95,6 +95,8 @@ class TestE2ESimulation(object):
# get the dictionary of result points; the next() function just gets the first element of the query results generator (we only expect one item in the generator) # get the dictionary of result points; the next() function just gets the first element of the query results generator (we only expect one item in the generator)
actual_result = next(query_result.get_points()) actual_result = next(query_result.get_points())
print("expected_result == actual_result {0}, {1}".format(expected_result, actual_result))
assert expected_result == actual_result, "E2E Simulation test failure" assert expected_result == actual_result, "E2E Simulation test failure"
print("Successfully passed test for the following query: {0}".format(query))
...@@ -41,7 +41,7 @@ def get_version(fname): ...@@ -41,7 +41,7 @@ def get_version(fname):
setup( setup(
name = "clmc", name = "clmctest",
version = get_version("clmctest/_version.py"), version = get_version("clmctest/_version.py"),
author = "Michael Boniface", author = "Michael Boniface",
author_email = "mjb@it-innovation.soton.ac.uk", author_email = "mjb@it-innovation.soton.ac.uk",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment