Skip to content

Commit 43abca6

Browse files
author
Simple-Tracker
committed
Bug fix
1 parent 9f803bd commit 43abca6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

SyncServer_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func TestSyncWithServerPrepareJSON(t *testing.T) {
3737
}
3838

3939
var body SyncServer_SubmitStruct
40-
if err := json.Unmarshal(payload, &body); err != nil {
40+
if err := json.Unmarshal([]byte(payload), &body); err != nil {
4141
t.Fatalf("failed to decode payload: %v", err)
4242
}
4343
if body.Version != 1 {

0 commit comments

Comments
 (0)