Skip to content

Commit f5ba524

Browse files
author
keks
committed
fix tests
1 parent 40ce731 commit f5ba524

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

response_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ func TestMarshalling(t *testing.T) {
4343
re.SetError(fmt.Errorf("Oops!"), cmdkit.ErrClient)
4444

4545
output = buf.String()
46-
if removeWhitespace(output) != "{\"Message\":\"Oops!\",\"Code\":1}" {
47-
t.Log("expected: {\"Message\":\"Oops!\",\"Code\":1}")
46+
if removeWhitespace(output) != `{"Message":"Oops!","Code":1,"Type":"error"}` {
47+
t.Log(`expected: {"Message":"Oops!","Code":1,"Type":"error"}`)
4848
t.Log("got:", removeWhitespace(buf.String()))
4949
t.Error("Incorrect JSON output")
5050
}

0 commit comments

Comments
 (0)