Skip to content

Commit

Permalink
longer sleep for slower disks, do not use the install version for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kazuho committed Apr 9, 2010
1 parent bc3065d commit 976c995
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/App/Cosmic/Server/Linux.pm
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ sub _remove_device {
# disable and drop all connections -> unregister device -> remove lv
$self->_disallow_current($global_name);
$self->_unregister_device($global_name);
sleep 1; # seems necessary
sleep 5; # seems necessary
systeml(
qw(lvremove -f),
$self->device_prefix . $global_name,
Expand Down
2 changes: 1 addition & 1 deletion t/10server.t
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ sub run_phased {
my $pid = open2(
my $infh,
my $outfh,
"cosmic-server $cmd 2>&1",
"$^X -Iblib/lib blib/script/cosmic-server $cmd 2>&1",
) or die "failed to invoke cosmic-server $major_cmd:$?";
$outfh->print("next\n" x $lock_cnt);
my $indata = join '', <$infh>;
Expand Down

0 comments on commit 976c995

Please sign in to comment.