Date test was written should not be hard coded.
The date should use the today, while that still has the "run the tests at almost midnight UTC" race condition, at least it will usually be right. :)
This commit is contained in:
		
							parent
							
								
									97e772b89c
								
							
						
					
					
						commit
						5901e567d3
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -714,14 +714,14 @@ lives_ok { %emailAddresses = $sp->getEmailAddresses($olsonId); } | |||
|          "getEmailAddresses: 1 lookup of addresses succeeds..."; | ||||
| 
 | ||||
| is_deeply(\%emailAddresses, {'everyone@example.net' => { 'date_encountered' => $today, 'name' => 'paypal' }, | ||||
|                             'olson@example.net' => { 'date_encountered' => '2015-12-31', 'name' => 'home' }}, | ||||
|                             'olson@example.net' => { 'date_encountered' => $today, 'name' => 'home' }}, | ||||
|           "getEmailAddresses: ... and returns correct results."); | ||||
| 
 | ||||
| lives_ok { %emailAddresses = $sp->getEmailAddresses($drapperId); } | ||||
|          "getEmailAddresses: 2 lookup of addresses succeeds..."; | ||||
| 
 | ||||
| is_deeply(\%emailAddresses, {'everyone@example.net' => { 'date_encountered' => $today, 'name' => 'paypal' }, | ||||
|                             'drapper@example.org' => { 'date_encountered' => '2015-12-31', 'name' => 'work' }}, | ||||
|                             'drapper@example.org' => { 'date_encountered' => $today, 'name' => 'work' }}, | ||||
|           "getEmailAddresses: ... and returns correct results."); | ||||
| 
 | ||||
| lives_ok { %emailAddresses = $sp->getEmailAddresses($sterlingId); } | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Bradley M. Kuhn
						Bradley M. Kuhn