We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f803bd commit 43abca6Copy full SHA for 43abca6
1 file changed
SyncServer_test.go
@@ -37,7 +37,7 @@ func TestSyncWithServerPrepareJSON(t *testing.T) {
37
}
38
39
var body SyncServer_SubmitStruct
40
- if err := json.Unmarshal(payload, &body); err != nil {
+ if err := json.Unmarshal([]byte(payload), &body); err != nil {
41
t.Fatalf("failed to decode payload: %v", err)
42
43
if body.Version != 1 {
0 commit comments