Skip to content

Commit

Permalink
fix: also change comment
Browse files Browse the repository at this point in the history
Signed-off-by: Jakob Möller <jmoller@redhat.com>
  • Loading branch information
jakobmoellerdev committed Aug 5, 2024
1 parent 8d47b6c commit bbf878c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vgreduce_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"context"
"fmt"
"testing"
"time"

. "github.com/jakobmoellerdev/lvm2go"
)
Expand Down Expand Up @@ -61,7 +62,8 @@ func TestVGReduceByForce(t *testing.T) {
if err := clnt.LVChange(ctx, infra.volumeGroup.Name, infra.lvs[0].LogicalVolumeName(), Deactivate); err != nil {
t.Fatal(err)
}

// Wait to allow the device to be removed
time.Sleep(100 * time.Millisecond)
if err := clnt.VGChange(ctx, infra.volumeGroup.Name, MaximumPhysicalVolumes(5)); err == nil {
t.Fatal("expected error due to device missing")
} else if !IsLVMErrVGImmutableDueToMissingPVs(err) {
Expand Down

0 comments on commit bbf878c

Please sign in to comment.