Fix swallowed error in attachdetach tests

This commit is contained in:
Lars Lehtonen 2017-08-22 23:35:54 -07:00
parent f354857bfb
commit 3893e28b66
No known key found for this signature in database
GPG Key ID: 8137D474EBCB04F2

View File

@ -99,6 +99,10 @@ func Test_AttachDetachControllerStateOfWolrdPopulators_Positive(t *testing.T) {
// Test the ActualStateOfWorld contains all the node volumes
nodes, err := adc.nodeLister.List(labels.Everything())
if err != nil {
t.Fatalf("Failed to list nodes in indexer. Expected: <no error> Actual: %v", err)
}
for _, node := range nodes {
nodeName := types.NodeName(node.Name)
for _, attachedVolume := range node.Status.VolumesAttached {