Skip to content

Commit

Permalink
prevent race-condition for 'first' setting in testing mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mickeyn committed May 6, 2016
1 parent 340bac6 commit 5d617ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/MetaCPAN/Script/Release.pm
Expand Up @@ -275,6 +275,8 @@ sub import_archive {
# update 'first' value
$document->set_first;
$document->put;

sleep 2 if $ENV{'METACPAN_SERVER_CONFIG_LOCAL_SUFFIX'} eq 'testing';
}

sub _build_backpan_index {
Expand Down

0 comments on commit 5d617ae

Please sign in to comment.