From b3d43207e83e99d940a3567a39d6fbbcb88ee614 Mon Sep 17 00:00:00 2001 From: a1k24 Date: Wed, 30 Sep 2020 11:53:46 +0530 Subject: [PATCH] resolve PR comment ( add nil check ) --- test/integration/ttlcontroller/ttlcontroller_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/integration/ttlcontroller/ttlcontroller_test.go b/test/integration/ttlcontroller/ttlcontroller_test.go index 4e07ffee7d6..31cd74a2c1c 100644 --- a/test/integration/ttlcontroller/ttlcontroller_test.go +++ b/test/integration/ttlcontroller/ttlcontroller_test.go @@ -74,7 +74,9 @@ func createNodes(t *testing.T, client *clientset.Clientset, startIndex, endIndex }() for err := range errs { - t.Fatalf("Failed to create node: %v", err) + if err != nil { + t.Fatalf("Failed to create node: %v", err) + } } }