Fixed a possible nil pointer dereference caused by variable plug
This commit is contained in:
committed by
Mengjiao Liu
parent
5de1a754c8
commit
c24b87b133
@@ -46,7 +46,7 @@ func makePluginUnderTest(t *testing.T, plugName, basePath string) volume.VolumeP
|
||||
|
||||
plug, err := plugMgr.FindPluginByName(plugName)
|
||||
if err != nil {
|
||||
t.Errorf("Can't find the plugin by name")
|
||||
t.Fatal("Can't find the plugin by name")
|
||||
}
|
||||
return plug
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user