diff --git a/cmd/server/tests/kobo_test.go b/cmd/server/tests/kobo_test.go index 1fc4464..e3ad5d5 100644 --- a/cmd/server/tests/kobo_test.go +++ b/cmd/server/tests/kobo_test.go @@ -215,14 +215,13 @@ func TestKoboAnalyticsGettests(t *testing.T) { deviceSetup := setupDeviceTest(t) koboDevice := deviceSetup.CreateDevice(t, "Test Kobo", "kobo", "kobo-clara-analytics") - reqBody := map[string]interface{}{ - "meta": map[string]string{ - "name": "Kobo Analytics Tests", + reqBody := []map[string]interface{}{ + { + "ContentId": mediaItemID, + "ReadingEvent": "Reading", + "RemainingTimeMin": 180, + "PercentRead": 67.8, }, - "ContentId": mediaItemID, - "ReadingEvent": "Reading", - "RemainingTimeMin": 180, - "PercentRead": 67.8, } body, _ := json.Marshal(reqBody)