fix testing

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2017-07-08 17:11:28 +08:00
parent 08338eff82
commit cb524fc94e
No known key found for this signature in database
GPG Key ID: 0F84B2110C500B1F
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ func TestError(t *testing.T) {
}) })
jsonBytes, _ := json.Marshal(err) jsonBytes, _ := json.Marshal(err)
assert.Equal(t, string(jsonBytes), "{\"error\":\"test error\",\"meta\":\"some data\"}") assert.Equal(t, "{\"meta\":\"some data\",\"error\":\"test error\"}", string(jsonBytes))
err.SetMeta(H{ err.SetMeta(H{
"status": "200", "status": "200",