浏览代码

fix testing

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Bo-Yi Wu 8 年之前
父节点
当前提交
cb524fc94e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      errors_test.go

+ 1 - 1
errors_test.go

@@ -32,7 +32,7 @@ func TestError(t *testing.T) {
 	})
 
 	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{
 		"status": "200",