fix: use timezone.utc in test_block_import.py
Some checks failed
Cross-Node Transaction Testing / transaction-test (push) Has been cancelled
Deploy to Testnet / deploy-testnet (push) Has been cancelled
Multi-Node Stress Testing / stress-test (push) Has been cancelled
Node Failover Simulation / failover-test (push) Has been cancelled
Python Tests / test-python (push) Failing after 1m4s
Some checks failed
Cross-Node Transaction Testing / transaction-test (push) Has been cancelled
Deploy to Testnet / deploy-testnet (push) Has been cancelled
Multi-Node Stress Testing / stress-test (push) Has been cancelled
Node Failover Simulation / failover-test (push) Has been cancelled
Python Tests / test-python (push) Failing after 1m4s
This commit is contained in:
@@ -36,7 +36,7 @@ def test_block_import():
|
||||
print("\n1. Testing valid block import...")
|
||||
height = base_height
|
||||
parent_hash = head["hash"]
|
||||
timestamp = datetime.now(UTC).isoformat() + "Z"
|
||||
timestamp = datetime.now(timezone.utc).isoformat() + "Z"
|
||||
valid_hash = compute_block_hash(height, parent_hash, timestamp)
|
||||
|
||||
response = requests.post(
|
||||
|
||||
Reference in New Issue
Block a user