Skip to content

Commit

Permalink
update tests/integration/test_metrics.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dashed committed Mar 29, 2022
1 parent c1bbb29 commit 0539f79
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/integration/test_metrics.py
Expand Up @@ -472,7 +472,9 @@ def test_transaction_metrics(
}

transaction = generate_transaction_item()
transaction["timestamp"] = timestamp.isoformat()
end_timestamp = datetime.now(tz=timezone.utc)
transaction["timestamp"] = end_timestamp.isoformat()
transaction["start_timestamp"] = (end_timestamp - timedelta(seconds=10)).isoformat()
transaction["measurements"] = {
"foo": {"value": 1.2},
"bar": {"value": 1.3},
Expand All @@ -493,7 +495,7 @@ def test_transaction_metrics(
assert event["breakdowns"] == {
"span_ops": {
"ops.react.mount": {"value": 9.910106},
"total.time": {"value": 9.910106},
"total.time": {"value": 10009.910106},
}
}

Expand Down

0 comments on commit 0539f79

Please sign in to comment.