Skip to content

Commit c923e57

Browse files
committed
bugfix: fix diskquota test case
fix `TestRunWithDiskQuotaForLog` test case, remove add group and user. Signed-off-by: Rudy Zhang <[email protected]>
1 parent 105f412 commit c923e57

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

test/cli_run_volume_test.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -350,13 +350,6 @@ func (suite *PouchRunVolumeSuite) TestRunWithDiskQuotaForLog(c *check.C) {
350350
c.Assert(err, check.Equals, nil)
351351

352352
testFile := filepath.Join(containerMetaDir, "diskquota_testfile")
353-
354-
icmd.RunCommand("groupadd", "quota").Assert(c, icmd.Success)
355-
defer icmd.RunCommand("groupdel", "quota").Assert(c, icmd.Success)
356-
357-
icmd.RunCommand("useradd", "-g", "quota", "quota").Assert(c, icmd.Success)
358-
defer icmd.RunCommand("userdel", "quota").Assert(c, icmd.Success)
359-
360353
expct := icmd.Expected{
361354
ExitCode: 1,
362355
Err: "Disk quota exceeded",

0 commit comments

Comments
 (0)