Skip to content
This repository was archived by the owner on Mar 24, 2021. It is now read-only.
This repository was archived by the owner on Mar 24, 2021. It is now read-only.

TestSha1Sum should not fail if file open successful #28

@demizer

Description

@demizer
func TestSha1Sum(t *testing.T) {
    _, err := sha1sum("/root")
    if err == nil {
        t.Error("EXPECT: error permission denied GOT: No errors")
    }
}

Root user can read "/root", so this test will fail if being run by root user. This test should not fail if being run by a privileged user.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions