Skip to content

Commit 4fbbc5f

Browse files
mayoootgemini-code-assist[bot]
authored andcommitted
Update pkg/scheduler/webhook_test.go
Signed-off-by: Harry Li <[email protected]> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 57a634f commit 4fbbc5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/scheduler/webhook_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ func TestPodHasDifferentScheduler(t *testing.T) {
245245
func TestPodHasInitContainer(t *testing.T) {
246246
config.SchedulerName = "hami-scheduler"
247247
config.ForceOverwriteDefaultScheduler = true
248-
config := &device.Config{
248+
deviceConfig := &device.Config{
249249
NvidiaConfig: nvidia.NvidiaConfig{
250250
ResourceCountName: "hami.io/gpu",
251251
ResourceMemoryName: "hami.io/gpumem",
@@ -257,7 +257,7 @@ func TestPodHasInitContainer(t *testing.T) {
257257
},
258258
}
259259

260-
if err := device.InitDevicesWithConfig(config); err != nil {
260+
if err := device.InitDevicesWithConfig(deviceConfig); err != nil {
261261
klog.Fatalf("Failed to initialize devices with config: %v", err)
262262
}
263263

0 commit comments

Comments
 (0)