Merge pull request #2345 from iisulop/fix_timezone_problem_in_test_create_cluster_boto3

Fix timezone problem in test create cluster boto3
This commit is contained in:
Steve Pulec 2019-08-03 22:38:14 -05:00 committed by GitHub
commit 9b535a7c75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -36,6 +36,7 @@ def test_create_cluster_boto3():
response['Cluster']['NodeType'].should.equal('ds2.xlarge')
create_time = response['Cluster']['ClusterCreateTime']
create_time.should.be.lower_than(datetime.datetime.now(create_time.tzinfo))
create_time.should.be.greater_than(datetime.datetime.now(create_time.tzinfo) - datetime.timedelta(minutes=1))
@mock_redshift