@cryptotaxi247 / kubo / commits / 01938ac57

commands: Updated Response test to use safer option setting

Matt Bell committed Oct 10, 2014 at 13:49 UTC 01938ac57463f74bf1ec8c242530190542c0f31e
1 file changed +1 -1
commands/response_test.go
+1 -1
@@ -20,7 +20,7 @@ func TestMarshalling(t *testing.T) {
20 t.Error("Should have failed (no encoding type specified in request)")
21 }
22
23 - req.options["enc"] = Json
23 + req.SetOption(globalOptions[0], Json)
24 bytes, err := res.Marshal()
25 if err != nil {
26 t.Error("Should have passed")