Correct spelling mistakes

Signed-off-by: yuxiaobo <yuxiaobogo@163.com>
This commit is contained in:
yuxiaobo
2019-11-06 11:43:20 +08:00
parent 74cbf0dc33
commit 81e9f21f83
48 changed files with 63 additions and 63 deletions

View File

@@ -37,7 +37,7 @@ import (
func deepEqualWithoutGeneration(t *testing.T, testcase int, actual *nodeInfoListItem, expected *schedulernodeinfo.NodeInfo) {
if (actual == nil) != (expected == nil) {
t.Error("One of the actual or expeted is nil and the other is not!")
t.Error("One of the actual or expected is nil and the other is not!")
}
// Ignore generation field.
if actual != nil {
@@ -386,7 +386,7 @@ func TestSnapshot(t *testing.T) {
snapshot := cache.Snapshot()
if len(snapshot.Nodes) != len(cache.nodes) {
t.Errorf("Unequal number of nodes in the cache and its snapshot. expeted: %v, got: %v", len(cache.nodes), len(snapshot.Nodes))
t.Errorf("Unequal number of nodes in the cache and its snapshot. expected: %v, got: %v", len(cache.nodes), len(snapshot.Nodes))
}
for name, ni := range snapshot.Nodes {
nItem := cache.nodes[name]