From 5901e567d36707544e15d228add9aec532a39fa0 Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Thu, 7 Jan 2016 12:52:29 -0800 Subject: [PATCH] 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. :) --- Supporters/t/Supporters.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Supporters/t/Supporters.t b/Supporters/t/Supporters.t index 96cd13b..f045150 100644 --- a/Supporters/t/Supporters.t +++ b/Supporters/t/Supporters.t @@ -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); }