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()