@@ -26,7 +26,6 @@ import (
26
26
csipbv1 "github.com/container-storage-interface/spec/lib/go/csi"
27
27
api "k8s.io/api/core/v1"
28
28
"k8s.io/apimachinery/pkg/api/resource"
29
- "k8s.io/apimachinery/pkg/util/wait"
30
29
"k8s.io/kubernetes/pkg/volume"
31
30
"k8s.io/kubernetes/pkg/volume/csi/fake"
32
31
volumetypes "k8s.io/kubernetes/pkg/volume/util/types"
@@ -314,7 +313,6 @@ func TestClientNodeGetInfo(t *testing.T) {
314
313
expectedMaxVolumePerNode int64
315
314
expectedAccessibleTopology map [string ]string
316
315
mustFail bool
317
- mustTimeout bool
318
316
err error
319
317
}{
320
318
{
@@ -328,13 +326,6 @@ func TestClientNodeGetInfo(t *testing.T) {
328
326
mustFail : true ,
329
327
err : errors .New ("grpc error" ),
330
328
},
331
- {
332
- name : "test empty nodeId" ,
333
- mustTimeout : true ,
334
- expectedNodeID : "" ,
335
- expectedMaxVolumePerNode : 16 ,
336
- expectedAccessibleTopology : map [string ]string {"com.example.csi-topology/zone" : "zone1" },
337
- },
338
329
}
339
330
340
331
for _ , tc := range testCases {
@@ -358,13 +349,7 @@ func TestClientNodeGetInfo(t *testing.T) {
358
349
}
359
350
360
351
nodeID , maxVolumePerNode , accessibleTopology , err := client .NodeGetInfo (context .Background ())
361
- if tc .mustTimeout {
362
- if wait .ErrWaitTimeout .Error () != err .Error () {
363
- t .Errorf ("should have timed out : %s" , tc .name )
364
- }
365
- } else {
366
- checkErr (t , tc .mustFail , err )
367
- }
352
+ checkErr (t , tc .mustFail , err )
368
353
369
354
if nodeID != tc .expectedNodeID {
370
355
t .Errorf ("expected nodeID: %v; got: %v" , tc .expectedNodeID , nodeID )
0 commit comments