Fix snowflake E2E: add system metric sleep time (#11569)

This commit is contained in:
Mayur Singal 2023-05-12 14:09:57 +05:30 committed by GitHub
parent abb1437979
commit e61bb3cf0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,6 +12,7 @@
"""
Test Snowflake connector with CLI
"""
import time
from typing import List
import pytest
@ -141,6 +142,9 @@ class SnowflakeCliTest(CliCommonDB.TestSuite, SQACommonMethods):
)
self.delete_table_rows()
self.update_table_row()
# Add 10 second delay for system
# tables to register the change
time.sleep(10)
result = self.run_command("profile")
sink_status, source_status = self.retrieve_statuses(result)
self.assert_for_system_metrics(source_status, sink_status)