提交 01938ac5 作者: Matt Bell 提交者: Juan Batiz-Benet

commands: Updated Response test to use safer option setting

上级 308ee5c9
......@@ -20,7 +20,7 @@ func TestMarshalling(t *testing.T) {
t.Error("Should have failed (no encoding type specified in request)")
}
req.options["enc"] = Json
req.SetOption(globalOptions[0], Json)
bytes, err := res.Marshal()
if err != nil {
t.Error("Should have passed")
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论