
Use len() instead of telling whether it's nil Add tests to guarantee that when resourceToWeightMap is nil, scheduler will not crash Signed-off-by: kerthcet <kerthcet@gmail.com>
Use len() instead of telling whether it's nil Add tests to guarantee that when resourceToWeightMap is nil, scheduler will not crash Signed-off-by: kerthcet <kerthcet@gmail.com>