Skip to content

Commit 3d70f46

Browse files
committed
Fix tests after MC::Role update
1 parent 6fe4d73 commit 3d70f46

File tree

7 files changed

+21
-21
lines changed

7 files changed

+21
-21
lines changed

t/server/controller/author.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ my %tests = (
1919
cache_control => undef,
2020
surrogate_key =>
2121
'author=DOESNEXIST content_type=application/json content_type=application',
22-
surrogate_control => 'max-age=31556952, stale-if-error=2592000',
22+
surrogate_control => 'max-age=31556952, stale-while-revalidate=86400, stale-if-error=2592000',
2323
},
2424
'/author/MO' => {
2525
code => 200,
2626
cache_control => undef,
2727
surrogate_key =>
2828
'author=MO content_type=application/json content_type=application',
29-
surrogate_control => 'max-age=31556952, stale-if-error=2592000',
29+
surrogate_control => 'max-age=31556952, stale-while-revalidate=86400, stale-if-error=2592000',
3030
},
3131
'/author/_mapping' => {
3232
code => 200,

t/server/controller/changes.t

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ my $LOCAL_default_headers = {
1010
cache_control => undef,
1111
surrogate_key =>
1212
'author=LOCAL content_type=application/json content_type=application',
13-
surrogate_control => 'max-age=31556952, stale-if-error=2592000',
13+
surrogate_control => 'max-age=31556952, stale-while-revalidate=86400, stale-if-error=2592000',
1414
};
1515

1616
my $RWSTAUNER_default_headers = {
1717
cache_control => undef,
1818
surrogate_key =>
1919
'author=RWSTAUNER content_type=application/json content_type=application',
20-
surrogate_control => 'max-age=31556952, stale-if-error=2592000',
20+
surrogate_control => 'max-age=31556952, stale-while-revalidate=86400, stale-if-error=2592000',
2121
};
2222

2323
my @tests = (
@@ -53,7 +53,7 @@ my @tests = (
5353
cache_control => undef,
5454
surrogate_key =>
5555
'author=NOEXISTY content_type=application/json content_type=application',
56-
surrogate_control => 'max-age=31556952, stale-if-error=2592000',
56+
surrogate_control => 'max-age=31556952, stale-while-revalidate=86400, stale-if-error=2592000',
5757
}
5858
],
5959
[
@@ -63,7 +63,7 @@ my @tests = (
6363
cache_control => undef,
6464
surrogate_key =>
6565
'author=NOAUTOR content_type=application/json content_type=application',
66-
surrogate_control => 'max-age=31556952, stale-if-error=2592000',
66+
surrogate_control => 'max-age=31556952, stale-while-revalidate=86400, stale-if-error=2592000',
6767
}
6868
],
6969

t/server/controller/diff.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ test_psgi app, sub {
7272
cache_control => undef,
7373
surrogate_key =>
7474
'author=DOY content_type=application/json content_type=application',
75-
surrogate_control => 'max-age=31556952, stale-if-error=2592000',
75+
surrogate_control => 'max-age=31556952, stale-while-revalidate=86400, stale-if-error=2592000',
7676
}
7777
);
7878

@@ -95,7 +95,7 @@ test_psgi app, sub {
9595
cache_control => undef,
9696
surrogate_key =>
9797
'content_type=application/json content_type=application',
98-
surrogate_control => 'max-age=31556952, stale-if-error=2592000',
98+
surrogate_control => 'max-age=31556952, stale-while-revalidate=86400, stale-if-error=2592000',
9999
}
100100
);
101101

t/server/controller/file.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ my %tests = (
3434
cache_control => undef,
3535
surrogate_key =>
3636
'author=DOES content_type=application/json content_type=application',
37-
surrogate_control => 'max-age=31556952, stale-if-error=2592000',
37+
surrogate_control => 'max-age=31556952, stale-while-revalidate=86400, stale-if-error=2592000',
3838
},
3939
'/file/DOY/Moose-0.01/lib/Moose.pm' => {
4040
code => 200,
4141
cache_control => undef,
4242
surrogate_key =>
4343
'author=DOY content_type=application/json content_type=application',
44-
surrogate_control => 'max-age=31556952, stale-if-error=2592000',
44+
surrogate_control => 'max-age=31556952, stale-while-revalidate=86400, stale-if-error=2592000',
4545
},
4646
);
4747

t/server/controller/module.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ my %tests = (
2121
cache_control => undef,
2222
surrogate_key =>
2323
'author=DOY content_type=application/json content_type=application',
24-
surrogate_control => 'max-age=31556952, stale-if-error=2592000',
24+
surrogate_control => 'max-age=31556952, stale-while-revalidate=86400, stale-if-error=2592000',
2525
},
2626
'/module/Moose' => {
2727
code => 200,
@@ -50,7 +50,7 @@ my %tests = (
5050
cache_control => undef,
5151
surrogate_key =>
5252
'author=DOES content_type=application/json content_type=application',
53-
surrogate_control => 'max-age=31556952, stale-if-error=2592000',
53+
surrogate_control => 'max-age=31556952, stale-while-revalidate=86400, stale-if-error=2592000',
5454
},
5555

5656
);

t/server/controller/pod.t

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ my @tests = (
3636
cache_control => undef,
3737
surrogate_key =>
3838
'author=DOY content_type=application/json content_type=application',
39-
surrogate_control => 'max-age=31556952, stale-if-error=2592000',
39+
surrogate_control => 'max-age=31556952, stale-while-revalidate=86400, stale-if-error=2592000',
4040
},
4141
},
4242
{
@@ -46,7 +46,7 @@ my @tests = (
4646
cache_control => undef,
4747
surrogate_key =>
4848
'author=DOY content_type=text/html content_type=text',
49-
surrogate_control => 'max-age=31556952, stale-if-error=2592000',
49+
surrogate_control => 'max-age=31556952, stale-while-revalidate=86400, stale-if-error=2592000',
5050
},
5151
},
5252
{
@@ -56,7 +56,7 @@ my @tests = (
5656
cache_control => undef,
5757
surrogate_key =>
5858
'author=DOY content_type=text/html content_type=text',
59-
surrogate_control => 'max-age=31556952, stale-if-error=2592000',
59+
surrogate_control => 'max-age=31556952, stale-while-revalidate=86400, stale-if-error=2592000',
6060
},
6161
},
6262
{
@@ -66,7 +66,7 @@ my @tests = (
6666
cache_control => undef,
6767
surrogate_key =>
6868
'author=MO content_type=text/html content_type=text',
69-
surrogate_control => 'max-age=31556952, stale-if-error=2592000',
69+
surrogate_control => 'max-age=31556952, stale-while-revalidate=86400, stale-if-error=2592000',
7070
},
7171
},
7272
);

t/server/controller/source.t

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,35 +20,35 @@ my %tests = (
2020
cache_control => undef,
2121
surrogate_key =>
2222
'author=DOY content_type=text/html content_type=text',
23-
surrogate_control => 'max-age=31556952, stale-if-error=2592000'
23+
surrogate_control => 'max-age=31556952, stale-while-revalidate=86400, stale-if-error=2592000'
2424
},
2525
'/source/DOY/Moose-0.01/Changes' => {
2626
code => 200,
2727
cache_control => undef,
2828
surrogate_key =>
2929
'author=DOY content_type=text/plain content_type=text',
30-
surrogate_control => 'max-age=31556952, stale-if-error=2592000',
30+
surrogate_control => 'max-age=31556952, stale-while-revalidate=86400, stale-if-error=2592000',
3131
},
3232
'/source/DOY/Moose-0.01/Changes?callback=foo' => {
3333
code => 200,
3434
cache_control => undef,
3535
surrogate_key =>
3636
'author=DOY content_type=text/javascript content_type=text',
37-
surrogate_control => 'max-age=31556952, stale-if-error=2592000',
37+
surrogate_control => 'max-age=31556952, stale-while-revalidate=86400, stale-if-error=2592000',
3838
},
3939
'/source/DOY/Moose-0.01/MANIFEST' => {
4040
code => 200,
4141
cache_control => undef,
4242
surrogate_key =>
4343
'author=DOY content_type=text/plain content_type=text',
44-
surrogate_control => 'max-age=31556952, stale-if-error=2592000',
44+
surrogate_control => 'max-age=31556952, stale-while-revalidate=86400, stale-if-error=2592000',
4545
},
4646
'/source/DOY/Moose-0.01/MANIFEST?callback=foo' => {
4747
code => 200,
4848
cache_control => undef,
4949
surrogate_key =>
5050
'author=DOY content_type=text/javascript content_type=text',
51-
surrogate_control => 'max-age=31556952, stale-if-error=2592000',
51+
surrogate_control => 'max-age=31556952, stale-while-revalidate=86400, stale-if-error=2592000',
5252
},
5353
'/source/Moose' => {
5454
code => 200,

0 commit comments

Comments
 (0)