Skip to content

Commit 09d89ad

Browse files
committed
test: fix typo in TestAliKernelDiskQuotaWorks
In icmd/command.go, the Expected struct contains Error and Err, the Err will be used when expected error is included. Signed-off-by: Alex Jia <[email protected]>
1 parent a97c205 commit 09d89ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/cli_alikernel_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func (suite *PouchAliKernelSuite) TestAliKernelDiskQuotaWorks(c *check.C) {
5757
// generate a file larger than 1G should fail.
5858
expct = icmd.Expected{
5959
ExitCode: 1,
60-
Error: "Disk quota exceeded",
60+
Err: "Disk quota exceeded",
6161
}
6262
cmd := "dd if=/dev/zero of=/mnt/test bs=1024k count=1500"
6363
err = command.PouchRun("exec", funcname, "sh", "-c", cmd).Compare(expct)

0 commit comments

Comments
 (0)