Skip to content

Commit

Permalink
added removed line
Browse files Browse the repository at this point in the history
  • Loading branch information
saad-deriv committed Oct 22, 2024
1 parent 695d798 commit fd68cfa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion t/05_sanctions_redis.t
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,11 @@ subtest 'Update Data' => sub {

# rewrite to redis if update (publish) time is changed
set_fixed_time(1600);
$mock_data->{'EU-Sanctions'}->{updated} = 90;
$mock_data->{'EU-Sanctions'}->{updated} = 91;
$mock_data->{'UNSC-Sanctions'}->{updated} = 91;
$validator->update_data();
$expected->{'EU-Sanctions'}->{updated} = 91;
$expected->{'UNSC-Sanctions'}->{updated} = 91;
$expected->{$_}->{verified} = 1600 for keys %$expected;
is_deeply $validator->data, $expected, 'Data is loaded with new update time';
check_redis_content('EU-Sanctions', $mock_data->{'EU-Sanctions'}, 1600, 'Redis content changed by increased update time');
Expand Down

0 comments on commit fd68cfa

Please sign in to comment.