mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 03:57:41 +00:00
minor fixes to scheduler_test
This commit is contained in:
parent
d57531d924
commit
a718f6fdb8
@ -13,6 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|||||||
See the License for the specific language governing permissions and
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package registry
|
package registry
|
||||||
|
|
||||||
import (
|
import (
|
||||||
@ -26,7 +27,7 @@ func expectSchedule(scheduler Scheduler, pod api.Pod, expected string, t *testin
|
|||||||
actual, err := scheduler.Schedule(pod)
|
actual, err := scheduler.Schedule(pod)
|
||||||
expectNoError(t, err)
|
expectNoError(t, err)
|
||||||
if actual != expected {
|
if actual != expected {
|
||||||
t.Errorf("Unexpected scheduling value: %d, expected %d", actual, expected)
|
t.Errorf("Unexpected scheduling value: %v, expected %v", actual, expected)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user