@@ -385,7 +385,7 @@ func TestReserve(t *testing.T) {
385
385
elasticQuotas : map [string ]* ElasticQuotaInfo {
386
386
"ns1" : {
387
387
Namespace : "ns1" ,
388
- pods : sets.String {},
388
+ pods : sets.Set [ string ] {},
389
389
Min : & framework.Resource {
390
390
Memory : 1000 ,
391
391
},
@@ -405,7 +405,7 @@ func TestReserve(t *testing.T) {
405
405
{
406
406
"ns1" : {
407
407
Namespace : "ns1" ,
408
- pods : sets .NewString ("t1-p1" ),
408
+ pods : sets .New ("t1-p1" ),
409
409
Min : & framework.Resource {
410
410
Memory : 1000 ,
411
411
},
@@ -423,7 +423,7 @@ func TestReserve(t *testing.T) {
423
423
{
424
424
"ns1" : {
425
425
Namespace : "ns1" ,
426
- pods : sets .NewString ("t1-p1" ),
426
+ pods : sets .New ("t1-p1" ),
427
427
Min : & framework.Resource {
428
428
Memory : 1000 ,
429
429
},
@@ -499,7 +499,7 @@ func TestUnreserve(t *testing.T) {
499
499
elasticQuotas : map [string ]* ElasticQuotaInfo {
500
500
"ns1" : {
501
501
Namespace : "ns1" ,
502
- pods : sets .NewString ("t1-p3" , "t1-p4" ),
502
+ pods : sets .New ("t1-p3" , "t1-p4" ),
503
503
Min : & framework.Resource {
504
504
Memory : 1000 ,
505
505
},
@@ -515,7 +515,7 @@ func TestUnreserve(t *testing.T) {
515
515
{
516
516
"ns1" : {
517
517
Namespace : "ns1" ,
518
- pods : sets .NewString ("t1-p3" , "t1-p4" ),
518
+ pods : sets .New ("t1-p3" , "t1-p4" ),
519
519
Min : & framework.Resource {
520
520
Memory : 1000 ,
521
521
},
@@ -530,7 +530,7 @@ func TestUnreserve(t *testing.T) {
530
530
{
531
531
"ns1" : {
532
532
Namespace : "ns1" ,
533
- pods : sets .NewString ("t1-p3" , "t1-p4" ),
533
+ pods : sets .New ("t1-p3" , "t1-p4" ),
534
534
Min : & framework.Resource {
535
535
Memory : 1000 ,
536
536
},
@@ -545,7 +545,7 @@ func TestUnreserve(t *testing.T) {
545
545
{
546
546
"ns1" : {
547
547
Namespace : "ns1" ,
548
- pods : sets .NewString ("t1-p4" ),
548
+ pods : sets .New ("t1-p4" ),
549
549
Min : & framework.Resource {
550
550
Memory : 1000 ,
551
551
},
@@ -1030,7 +1030,7 @@ func TestAddElasticQuota(t *testing.T) {
1030
1030
expected : map [string ]* ElasticQuotaInfo {
1031
1031
"ns1" : {
1032
1032
Namespace : "ns1" ,
1033
- pods : sets.String {},
1033
+ pods : sets.Set [ string ] {},
1034
1034
Max : & framework.Resource {
1035
1035
MilliCPU : 100 ,
1036
1036
Memory : 1000 ,
@@ -1055,7 +1055,7 @@ func TestAddElasticQuota(t *testing.T) {
1055
1055
expected : map [string ]* ElasticQuotaInfo {
1056
1056
"ns1" : {
1057
1057
Namespace : "ns1" ,
1058
- pods : sets.String {},
1058
+ pods : sets.Set [ string ] {},
1059
1059
Max : & framework.Resource {
1060
1060
MilliCPU : UpperBoundOfMax ,
1061
1061
Memory : UpperBoundOfMax ,
@@ -1081,7 +1081,7 @@ func TestAddElasticQuota(t *testing.T) {
1081
1081
expected : map [string ]* ElasticQuotaInfo {
1082
1082
"ns1" : {
1083
1083
Namespace : "ns1" ,
1084
- pods : sets.String {},
1084
+ pods : sets.Set [ string ] {},
1085
1085
Max : & framework.Resource {
1086
1086
MilliCPU : 100 ,
1087
1087
Memory : 1000 ,
@@ -1107,7 +1107,7 @@ func TestAddElasticQuota(t *testing.T) {
1107
1107
expected : map [string ]* ElasticQuotaInfo {
1108
1108
"ns1" : {
1109
1109
Namespace : "ns1" ,
1110
- pods : sets.String {},
1110
+ pods : sets.Set [ string ] {},
1111
1111
Max : & framework.Resource {
1112
1112
MilliCPU : UpperBoundOfMax ,
1113
1113
Memory : UpperBoundOfMax ,
@@ -1182,7 +1182,7 @@ func TestUpdateElasticQuota(t *testing.T) {
1182
1182
expected : map [string ]* ElasticQuotaInfo {
1183
1183
"ns1" : {
1184
1184
Namespace : "ns1" ,
1185
- pods : sets.String {},
1185
+ pods : sets.Set [ string ] {},
1186
1186
Max : & framework.Resource {
1187
1187
MilliCPU : 300 ,
1188
1188
Memory : 1000 ,
@@ -1309,7 +1309,7 @@ func TestAddPod(t *testing.T) {
1309
1309
expected : map [string ]* ElasticQuotaInfo {
1310
1310
"ns1" : {
1311
1311
Namespace : "ns1" ,
1312
- pods : sets .NewString ("t1-p1" , "t1-p2" , "t1-p3" ),
1312
+ pods : sets .New ("t1-p1" , "t1-p2" , "t1-p3" ),
1313
1313
Max : & framework.Resource {
1314
1314
MilliCPU : 100 ,
1315
1315
Memory : 1000 ,
@@ -1389,7 +1389,7 @@ func TestUpdatePod(t *testing.T) {
1389
1389
expected : map [string ]* ElasticQuotaInfo {
1390
1390
"ns1" : {
1391
1391
Namespace : "ns1" ,
1392
- pods : sets .NewString ("t1-p1" ),
1392
+ pods : sets .New ("t1-p1" ),
1393
1393
Max : & framework.Resource {
1394
1394
MilliCPU : 100 ,
1395
1395
Memory : 1000 ,
@@ -1421,7 +1421,7 @@ func TestUpdatePod(t *testing.T) {
1421
1421
expected : map [string ]* ElasticQuotaInfo {
1422
1422
"ns1" : {
1423
1423
Namespace : "ns1" ,
1424
- pods : sets.String {},
1424
+ pods : sets.Set [ string ] {},
1425
1425
Max : & framework.Resource {
1426
1426
MilliCPU : 100 ,
1427
1427
Memory : 1000 ,
@@ -1505,7 +1505,7 @@ func TestDeletePod(t *testing.T) {
1505
1505
expected : map [string ]* ElasticQuotaInfo {
1506
1506
"ns1" : {
1507
1507
Namespace : "ns1" ,
1508
- pods : sets .NewString (),
1508
+ pods : sets .New [ string ] (),
1509
1509
Max : & framework.Resource {
1510
1510
MilliCPU : 100 ,
1511
1511
Memory : 1000 ,
@@ -1538,7 +1538,7 @@ func TestDeletePod(t *testing.T) {
1538
1538
expected : map [string ]* ElasticQuotaInfo {
1539
1539
"ns1" : {
1540
1540
Namespace : "ns1" ,
1541
- pods : sets .NewString ("t1-p2" ),
1541
+ pods : sets .New ("t1-p2" ),
1542
1542
Max : & framework.Resource {
1543
1543
MilliCPU : 100 ,
1544
1544
Memory : 1000 ,
0 commit comments