Skip to content

Commit 5d617ae

Browse files
committed
prevent race-condition for 'first' setting in testing mode
1 parent 340bac6 commit 5d617ae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/MetaCPAN/Script/Release.pm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,8 @@ sub import_archive {
275275
# update 'first' value
276276
$document->set_first;
277277
$document->put;
278+
279+
sleep 2 if $ENV{'METACPAN_SERVER_CONFIG_LOCAL_SUFFIX'} eq 'testing';
278280
}
279281

280282
sub _build_backpan_index {

0 commit comments

Comments
 (0)