Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
pkg/constants: improve GetMsgByCode test
Browse files Browse the repository at this point in the history
Signed-off-by: Zhou Hao <[email protected]>
  • Loading branch information
Zhou Hao committed Feb 11, 2020
1 parent 0508f23 commit 78504d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/constants/dfget_super_code_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,7 @@ func init() {
func (suite *DfgetSuperCodeUtilSuite) TestGetMsgByCode(c *check.C) {
msg := GetMsgByCode(200)
c.Check(msg, check.Equals, "success")

msg = GetMsgByCode(612)
c.Check(msg, check.Equals, "")
}

0 comments on commit 78504d7

Please sign in to comment.