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:
commit
9b535a7c75
2 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue