Skip to content

Commit

Permalink
chore: remove unnecessary comments
Browse files Browse the repository at this point in the history
  • Loading branch information
IronCore864 committed Sep 22, 2024
1 parent d9729af commit 8d2dd3b
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions internals/daemon/api_exec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,6 @@ func (s *execSuite) TestCurrentUserGroup(c *C) {
c.Check(stderr, Equals, "")
}

// See .github/workflows/tests.yml for how to run this test as root.
func (s *execSuite) TestUserGroup(c *C) {
if os.Getuid() != 0 {
c.Skip("requires running as root")
Expand Down Expand Up @@ -286,7 +285,6 @@ func (s *execSuite) TestUserGroup(c *C) {
c.Assert(err, ErrorMatches, `.*home directory.*does not exist`)
}

// See .github/workflows/tests.yml for how to run this test as root.
func (s *execSuite) TestUserIDGroupID(c *C) {
if os.Getuid() != 0 {
c.Skip("requires running as root")
Expand Down
2 changes: 0 additions & 2 deletions internals/daemon/api_files_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,6 @@ func (s *filesSuite) testMakeDirsUserGroup(c *C, uid, gid int, user, group strin
return tmpDir
}

// See .github/workflows/tests.yml for how to run this test as root.
func (s *filesSuite) TestMakeDirsUserGroupReal(c *C) {
if os.Getuid() != 0 {
c.Skip("requires running as root")
Expand Down Expand Up @@ -988,7 +987,6 @@ func (s *filesSuite) TestWriteUserGroupMocked(c *C) {
c.Check(mkdirCalls[1], Equals, mkdirArgs{tmpDir + "/nested2", 0o755, osutil.MkdirOptions{MakeParents: true, ExistOK: true, Chmod: true, Chown: true, UserID: 56, GroupID: 78}})
}

// See .github/workflows/tests.yml for how to run this test as root.
func (s *filesSuite) TestWriteUserGroupReal(c *C) {
if os.Getuid() != 0 {
c.Skip("requires running as root")
Expand Down
1 change: 0 additions & 1 deletion internals/osutil/mkdir_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ func (mkdirSuite) TestMakeParentsAndNoChmod(c *check.C) {
c.Assert(info.Mode().Perm(), check.Equals, os.FileMode(0o755))
}

// See .github/workflows/tests.yml for how to run this test as root.
func (mkdirSuite) TestMakeParentsChmodAndChown(c *check.C) {
if os.Getuid() != 0 {
c.Skip("requires running as root")
Expand Down
1 change: 0 additions & 1 deletion internals/overlord/servstate/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,6 @@ func (s *S) TestUserGroupFails(c *C) {
c.Check(gotGid, Equals, uint32(gid))
}

// See .github/workflows/tests.yml for how to run this test as root.
func (s *S) TestUserGroup(c *C) {
s.newServiceManager(c)
s.planAddLayer(c, testPlanLayer)
Expand Down

0 comments on commit 8d2dd3b

Please sign in to comment.