From 1b1bc10c60bf4c4dee5e03510fc08d50537f5e22 Mon Sep 17 00:00:00 2001 From: Tessa Walsh Date: Thu, 23 Feb 2023 13:57:22 -0500 Subject: [PATCH] Fix nightly tests (#632) --- backend/test_nightly/test_crawlconfig_crawl_stats.py | 2 +- backend/test_nightly/test_invite_expiration.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/test_nightly/test_crawlconfig_crawl_stats.py b/backend/test_nightly/test_crawlconfig_crawl_stats.py index 7a47cf40..722e50cd 100644 --- a/backend/test_nightly/test_crawlconfig_crawl_stats.py +++ b/backend/test_nightly/test_crawlconfig_crawl_stats.py @@ -56,7 +56,7 @@ def test_crawlconfig_crawl_stats(admin_auth_headers, default_org_id, crawl_confi data = r.json() assert data["crawlAttemptCount"] == 2 assert data["crawlCount"] == 1 - assert data["lastCrawlId"] == first_crawl_id + assert data["lastCrawlId"] == crawl_id assert data["lastCrawlState"] == "complete" assert data["lastCrawlTime"] == first_crawl_finished diff --git a/backend/test_nightly/test_invite_expiration.py b/backend/test_nightly/test_invite_expiration.py index 50c1d21c..15f4a62e 100644 --- a/backend/test_nightly/test_invite_expiration.py +++ b/backend/test_nightly/test_invite_expiration.py @@ -1,4 +1,5 @@ import requests +import time from .conftest import API_PREFIX