2626func TestNewConfigurationEmptyNodeList (t * testing.T ) {
2727 wantErr := errors .New ("config: missing required node addresses" )
2828 mgr := gorums .NewManager (gorums .InsecureDialOptions (t ))
29- t .Cleanup (mgr . Close )
29+ t .Cleanup (gorums . Closer ( t , mgr ) )
3030
3131 _ , err := gorums .NewConfiguration (mgr , gorums .WithNodeList ([]string {}))
3232 if err == nil {
@@ -39,7 +39,7 @@ func TestNewConfigurationEmptyNodeList(t *testing.T) {
3939
4040func TestNewConfigurationNodeList (t * testing.T ) {
4141 mgr := gorums .NewManager (gorums .InsecureDialOptions (t ))
42- t .Cleanup (mgr . Close )
42+ t .Cleanup (gorums . Closer ( t , mgr ) )
4343
4444 cfg , err := gorums .NewConfiguration (mgr , gorums .WithNodeList (nodes ))
4545 if err != nil {
@@ -77,7 +77,7 @@ func TestNewConfigurationNodeList(t *testing.T) {
7777
7878func TestNewConfigurationNodeMap (t * testing.T ) {
7979 mgr := gorums .NewManager (gorums .InsecureDialOptions (t ))
80- t .Cleanup (mgr . Close )
80+ t .Cleanup (gorums . Closer ( t , mgr ) )
8181
8282 cfg , err := gorums .NewConfiguration (mgr , gorums .WithNodeMap (nodeMap ))
8383 if err != nil {
@@ -103,7 +103,7 @@ func TestNewConfigurationNodeMap(t *testing.T) {
103103
104104func TestNewConfigurationNodeIDs (t * testing.T ) {
105105 mgr := gorums .NewManager (gorums .InsecureDialOptions (t ))
106- t .Cleanup (mgr . Close )
106+ t .Cleanup (gorums . Closer ( t , mgr ) )
107107
108108 c1 , err := gorums .NewConfiguration (mgr , gorums .WithNodeList (nodes ))
109109 if err != nil {
@@ -141,7 +141,7 @@ func TestNewConfigurationNodeIDs(t *testing.T) {
141141
142142func TestNewConfigurationAnd (t * testing.T ) {
143143 mgr := gorums .NewManager (gorums .InsecureDialOptions (t ))
144- t .Cleanup (mgr . Close )
144+ t .Cleanup (gorums . Closer ( t , mgr ) )
145145
146146 c1 , err := gorums .NewConfiguration (mgr , gorums .WithNodeList (nodes ))
147147 if err != nil {
@@ -195,7 +195,7 @@ func TestNewConfigurationAnd(t *testing.T) {
195195
196196func TestNewConfigurationExcept (t * testing.T ) {
197197 mgr := gorums .NewManager (gorums .InsecureDialOptions (t ))
198- t .Cleanup (mgr . Close )
198+ t .Cleanup (gorums . Closer ( t , mgr ) )
199199
200200 c1 , err := gorums .NewConfiguration (mgr , gorums .WithNodeList (nodes ))
201201 if err != nil {
@@ -254,7 +254,7 @@ func TestConfigConcurrentAccess(t *testing.T) {
254254
255255func TestConfigurationWithoutErrors (t * testing.T ) {
256256 mgr := gorums .NewManager (gorums .InsecureDialOptions (t ))
257- t .Cleanup (mgr . Close )
257+ t .Cleanup (gorums . Closer ( t , mgr ) )
258258
259259 cfg , err := gorums .NewConfiguration (mgr , gorums .WithNodeMap (nodeMap ))
260260 if err != nil {
0 commit comments