Skip to content

Commit

Permalink
Update emission/tests/funcTests/TestFunctionTiming.py
Browse files Browse the repository at this point in the history
Co-authored-by: Jack Greenlee <[email protected]>
  • Loading branch information
TeachMeTW and JGreenlee authored Oct 16, 2024
1 parent 9f9ec9e commit d76f63a
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions emission/tests/funcTests/TestFunctionTiming.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,6 @@ def test_multiple_functions(self):
stored_documents = list(stored_documents_chain)
logging.info(f"Number of 'stats/dashboard_time' entries retrieved: {len(stored_documents)}")

# Log details of each stored document
for doc in stored_documents:
try:
name = doc['data']['name']
reading = doc['data']['reading']
ts = doc['data']['ts']
logging.info(f"Stored Entry - Name: {name}, Reading: {reading} ms, Timestamp: {ts}")
except KeyError as e:
logging.error(f"Missing key {e} in stored document: {doc}")

# Assert that the number of stored documents matches the number of functions tested
expected_count = len(functions)
actual_count = len(stored_documents)
Expand Down

0 comments on commit d76f63a

Please sign in to comment.