From d564d0696716af78487b5991a13c39ea9c79fb47 Mon Sep 17 00:00:00 2001 From: Lars Lehtonen Date: Fri, 25 Aug 2017 20:05:06 -0700 Subject: [PATCH] Fix swallowed error in storageos --- pkg/volume/storageos/storageos_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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") }