File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed
pkg/scheduler/framework/plugins/volumezone Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -542,7 +542,6 @@ func TestWithBinding(t *testing.T) {
542
542
}
543
543
544
544
func TestIsSchedulableAfterPersistentVolumeClaimAdded (t * testing.T ) {
545
- var modeWait = storagev1 .VolumeBindingWaitForFirstConsumer
546
545
pvLister := tf.PersistentVolumeLister {
547
546
{
548
547
ObjectMeta : metav1.ObjectMeta {Name : "Vol_1" , Labels : map [string ]string {v1 .LabelFailureDomainBetaZone : "us-west1-a" }},
@@ -558,20 +557,12 @@ func TestIsSchedulableAfterPersistentVolumeClaimAdded(t *testing.T) {
558
557
ObjectMeta : metav1.ObjectMeta {Name : "PVC_2" , Namespace : "default" },
559
558
Spec : v1.PersistentVolumeClaimSpec {StorageClassName : ptr .To ("SC_1" )},
560
559
},
561
- {
562
- ObjectMeta : metav1.ObjectMeta {Name : "PVC_3" , Namespace : "default" },
563
- Spec : v1.PersistentVolumeClaimSpec {StorageClassName : ptr .To ("SC_2" )},
564
- },
565
560
}
566
561
567
562
scLister := tf.StorageClassLister {
568
563
{
569
564
ObjectMeta : metav1.ObjectMeta {Name : "SC_1" },
570
565
},
571
- {
572
- ObjectMeta : metav1.ObjectMeta {Name : "SC_2" },
573
- VolumeBindingMode : & modeWait ,
574
- },
575
566
}
576
567
577
568
testcases := map [string ]struct {
You can’t perform that action at this time.
0 commit comments