Fix swallowed error in storageos

pull/6/head
Lars Lehtonen 2017-08-25 20:05:06 -07:00
parent 5f805a5e66
commit d564d06967
No known key found for this signature in database
GPG Key ID: 8137D474EBCB04F2
1 changed files with 3 additions and 1 deletions

View File

@ -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")
}