From 3893e28b669063dbefb1c5266b22c0145f076588 Mon Sep 17 00:00:00 2001 From: Lars Lehtonen Date: Tue, 22 Aug 2017 23:35:54 -0700 Subject: [PATCH] Fix swallowed error in attachdetach tests --- .../volume/attachdetach/attach_detach_controller_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/controller/volume/attachdetach/attach_detach_controller_test.go b/pkg/controller/volume/attachdetach/attach_detach_controller_test.go index b63103bf2f8..6145b1f933a 100644 --- a/pkg/controller/volume/attachdetach/attach_detach_controller_test.go +++ b/pkg/controller/volume/attachdetach/attach_detach_controller_test.go @@ -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: Actual: %v", err) + } + for _, node := range nodes { nodeName := types.NodeName(node.Name) for _, attachedVolume := range node.Status.VolumesAttached {