Skip to content

Commit 150c998

Browse files
committed
Updates to tests
Signed-off-by: Shmuel Kallner <[email protected]>
1 parent 522d88f commit 150c998

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

pkg/epp/config/loader/configloader_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func TestLoadRawConfiguration(t *testing.T) {
100100
},
101101
},
102102
},
103-
FeatureGates: configapi.FeatureGates{datalayer.FeatureGate: true},
103+
FeatureGates: configapi.FeatureGates{datalayer.FeatureGate},
104104
SaturationDetector: &configapi.SaturationDetector{
105105
MetricsStalenessThreshold: metav1.Duration{Duration: 150 * time.Millisecond},
106106
},
@@ -206,7 +206,7 @@ func TestLoadRawConfigurationWithDefaults(t *testing.T) {
206206
},
207207
},
208208
},
209-
FeatureGates: configapi.FeatureGates{datalayer.FeatureGate: true},
209+
FeatureGates: configapi.FeatureGates{datalayer.FeatureGate},
210210
SaturationDetector: &configapi.SaturationDetector{
211211
QueueDepthThreshold: saturationdetector.DefaultQueueDepthThreshold,
212212
KVCacheUtilThreshold: saturationdetector.DefaultKVCacheUtilThreshold,
@@ -563,7 +563,7 @@ schedulingProfiles:
563563
weight: 50
564564
- pluginRef: testPicker
565565
featureGates:
566-
dataLayer: true
566+
- dataLayer
567567
saturationDetector:
568568
metricsStalenessThreshold: 150ms
569569
`
@@ -743,7 +743,7 @@ plugins:
743743
parameters:
744744
threshold: 10
745745
featureGates:
746-
qwerty: true
746+
- qwerty
747747
`
748748

749749
// compile-time type validation
@@ -886,7 +886,7 @@ schedulingProfiles:
886886
weight: 50
887887
- pluginRef: maxScorePicker
888888
featureGates:
889-
dataLayer: true
889+
- dataLayer
890890
`
891891

892892
// valid configuration, with default weight for scorer

test/testdata/configloader_1_test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ schedulingProfiles:
2020
weight: 50
2121
- pluginRef: testPicker
2222
featureGates:
23-
dataLayer: true
23+
- dataLayer
2424
saturationDetector:
2525
metricsStalenessThreshold: 150ms

0 commit comments

Comments
 (0)