Merge pull request #1162 from rajasec/error-typos

Correction in util error messages
This commit is contained in:
Michael Crosby 2016-10-31 10:20:09 -07:00 committed by GitHub
commit 94ef94e711
1 changed files with 4 additions and 4 deletions

View File

@ -133,21 +133,21 @@ func TestWriteJSON(t *testing.T) {
func TestCleanPath(t *testing.T) {
path := CleanPath("")
if path != "" {
t.Errorf("expected to received empty string and received %s", path)
t.Errorf("expected to receive empty string and received %s", path)
}
path = CleanPath("rootfs")
if path != "rootfs" {
t.Errorf("expected to received 'rootfs' and received %s", path)
t.Errorf("expected to receive 'rootfs' and received %s", path)
}
path = CleanPath("../../../var")
if path != "var" {
t.Errorf("expected to received 'var' and received %s", path)
t.Errorf("expected to receive 'var' and received %s", path)
}
path = CleanPath("/../../../var")
if path != "/var" {
t.Errorf("expected to received '/var' and received %s", path)
t.Errorf("expected to receive '/var' and received %s", path)
}
}