diff --git a/pkg/volume/storageos/storageos_test.go b/pkg/volume/storageos/storageos_test.go index 37d6cc71f7..182deffd35 100644 --- a/pkg/volume/storageos/storageos_test.go +++ b/pkg/volume/storageos/storageos_test.go @@ -363,7 +363,9 @@ func TestPersistentClaimReadOnlyFlag(t *testing.T) { fakeConfig := &fakeConfig{} apiCfg := fakeConfig.GetAPIConfig() mounter, err := plug.(*storageosPlugin).newMounterInternal(spec, pod, apiCfg, fakeManager, &mount.FakeMounter{}, mount.NewFakeExec(nil)) - + if err != nil { + t.Fatalf("error creating a new internal mounter:%v", err) + } if !mounter.GetAttributes().ReadOnly { t.Errorf("Expected true for mounter.IsReadOnly") }