Skip to content

Commit

Permalink
Add test information in cli_version_test.go
Browse files Browse the repository at this point in the history
Signed-off-by: 630445639 <630445639@qq.com>
  • Loading branch information
Sakuralbj authored and allencloud committed Jun 9, 2019
1 parent 6e21e68 commit 77659ab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/cli_version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,10 @@ func (suite *PouchVersionSuite) TestPouchVersion(c *check.C) {

kernelVersion := "<unknown>"
kerVersion, err := kernel.GetKernelVersion()
if err != nil {
if err == nil {
kernelVersion = kerVersion.String()
}
c.Assert(kv["KernelVersion"], check.Equals, kernelVersion)

}

// versionToKV reads version string into key-value mapping.
Expand Down

0 comments on commit 77659ab

Please sign in to comment.