Skip to content

Commit

Permalink
fix historical test flakiness
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Klegar <jacob@tecton.ai>
  • Loading branch information
jklegar committed Jan 15, 2021
1 parent 8cd480f commit 3a7e871
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/e2e/test_historical_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ def test_historical_features(

feature_refs = ["transactions:daily_transactions"]

job_submission_time = datetime.utcnow()
# remove microseconds because job.get_start_time() does not contain microseconds
job_submission_time = datetime.utcnow().replace(microsecond=0)
job = feast_client.get_historical_features(feature_refs, customers_df)
assert job.get_start_time() >= job_submission_time
assert job.get_start_time() <= job_submission_time + timedelta(hours=1)
Expand Down

0 comments on commit 3a7e871

Please sign in to comment.