Skip to content

Commit d12c3c3

Browse files
authored
Merge pull request kubernetes#129662 from utam0k/qhint-prefix
Put the target plugin names in the Qhint integration test cases
2 parents 1c32094 + e1fdced commit d12c3c3

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

test/integration/scheduler/queueing/former/queue_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ limitations under the License.
1717
package queueing
1818

1919
import (
20+
"strings"
2021
"testing"
2122

2223
utilfeature "k8s.io/apiserver/pkg/util/feature"
@@ -35,7 +36,7 @@ func TestCoreResourceEnqueueWithQueueingHints(t *testing.T) {
3536
}
3637
// Note: if EnableSchedulingQueueHint is nil, we assume the test should be run both with/without the feature gate.
3738

38-
t.Run(tt.Name, func(t *testing.T) {
39+
t.Run(strings.Join(append(tt.EnablePlugins, tt.Name), "/"), func(t *testing.T) {
3940
featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.SchedulerQueueingHints, false)
4041
queueing.RunTestCoreResourceEnqueue(t, tt)
4142
})

test/integration/scheduler/queueing/queueinghint/queue_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ limitations under the License.
1717
package queueing
1818

1919
import (
20+
"strings"
2021
"testing"
2122

2223
utilfeature "k8s.io/apiserver/pkg/util/feature"
@@ -34,8 +35,7 @@ func TestCoreResourceEnqueue(t *testing.T) {
3435
continue
3536
}
3637
// Note: if EnableSchedulingQueueHint is nil, we assume the test should be run both with/without the feature gate.
37-
38-
t.Run(tt.Name, func(t *testing.T) {
38+
t.Run(strings.Join(append(tt.EnablePlugins, tt.Name), "/"), func(t *testing.T) {
3939
featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.SchedulerQueueingHints, true)
4040
queueing.RunTestCoreResourceEnqueue(t, tt)
4141
})

0 commit comments

Comments
 (0)