From 8647aec73fa422737c2d73b3ce22d68b6f865b62 Mon Sep 17 00:00:00 2001 From: Tanmay Jain Date: Wed, 6 Mar 2024 11:56:49 +0530 Subject: [PATCH] fixing testcase --- test/storage_wipe_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/storage_wipe_test.go b/test/storage_wipe_test.go index 537572192..dde382f23 100644 --- a/test/storage_wipe_test.go +++ b/test/storage_wipe_test.go @@ -231,8 +231,8 @@ func writeDataToCluster( } asClient, err := as.NewClientWithPolicyAndHost(policy, hostList...) - if err != nil { - return err + if asClient == nil { + return fmt.Errorf("aerospike client is nil %v", err) } defer asClient.Close()