Skip to content

Commit 99ddff8

Browse files
committed
dxf: use fmt.Fprintf in scheduler test util
1 parent 1f904bb commit 99ddff8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/dxf/framework/testutil/scheduler_util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func GetMockSchedulerExt(ctrl *gomock.Controller, schedulerInfo SchedulerInfo) s
107107
if i > 0 {
108108
sb.WriteString(",")
109109
}
110-
sb.WriteString(fmt.Sprintf("%s=%d", m.Type, m.To))
110+
fmt.Fprintf(&sb, "%s=%d", m.Type, m.To)
111111
}
112112
return []byte(sb.String()), nil
113113
},

0 commit comments

Comments
 (0)