Skip to content

Commit

Permalink
Fixs return error message
Browse files Browse the repository at this point in the history
Signed-off-by: JoeWrightss <zhoulin.xie@daocloud.io>
  • Loading branch information
JoeWrightss committed Dec 8, 2018
1 parent 10cd53e commit f48bd85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cgroup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ func checkPid(mock *mockCgroup, path string, expected int) error {
return err
}
if v != expected {
return fmt.Errorf("expectd pid %d but received %d", expected, v)
return fmt.Errorf("expected pid %d but received %d", expected, v)
}
return nil
}
Expand All @@ -227,7 +227,7 @@ func checkTaskid(mock *mockCgroup, path string, expected int) error {
return err
}
if v != expected {
return fmt.Errorf("expectd task id %d but received %d", expected, v)
return fmt.Errorf("expected task id %d but received %d", expected, v)
}
return nil
}
Expand Down

0 comments on commit f48bd85

Please sign in to comment.