|
Lines 68-74
subtest 'enqueue() tests' => sub {
Link Here
|
| 68 |
|
68 |
|
| 69 |
subtest 'process() tests' => sub { |
69 |
subtest 'process() tests' => sub { |
| 70 |
|
70 |
|
| 71 |
plan tests => 3; |
71 |
plan tests => 4; |
| 72 |
|
72 |
|
| 73 |
$schema->storage->txn_begin; |
73 |
$schema->storage->txn_begin; |
| 74 |
|
74 |
|
|
Lines 103-109
subtest 'process() tests' => sub {
Link Here
|
| 103 |
is( $statistic->{datetime}, $pt_after->last->datetime, "'datetime' column preserved" ); |
103 |
is( $statistic->{datetime}, $pt_after->last->datetime, "'datetime' column preserved" ); |
| 104 |
|
104 |
|
| 105 |
$job->discard_changes; |
105 |
$job->discard_changes; |
| 106 |
is( $job->data, '{"data":""}', "Job data cleared after pseudonymization" ); |
106 |
is( $job->data, '{"data":""}', "Job data cleared after pseudonymization" ); |
|
|
107 |
is( $job->progress, 1, "Job progress is updated" ); |
| 107 |
|
108 |
|
| 108 |
$schema->storage->txn_rollback; |
109 |
$schema->storage->txn_rollback; |
| 109 |
}; |
110 |
}; |
| 110 |
- |
|
|