summaryrefslogtreecommitdiff
path: root/src/pkg/json/stream_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/json/stream_test.go')
-rw-r--r--src/pkg/json/stream_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/json/stream_test.go b/src/pkg/json/stream_test.go
index 86d014290..ab90b754e 100644
--- a/src/pkg/json/stream_test.go
+++ b/src/pkg/json/stream_test.go
@@ -109,7 +109,7 @@ func TestRawMessage(t *testing.T) {
if err != nil {
t.Fatalf("Unmarshal: %v", err)
}
- if string(*data.Id) != raw {
+ if string([]byte(*data.Id)) != raw {
t.Fatalf("Raw mismatch: have %#q want %#q", []byte(*data.Id), raw)
}
b, err := Marshal(&data)