Merge pull request #1162 from rajasec/error-typos
Correction in util error messages
This commit is contained in:
commit
94ef94e711
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue