Skip to content
Snippets Groups Projects
Commit 1dfbf690 authored by Jonah Husson's avatar Jonah Husson
Browse files

Fix other uses of report objects

parent 849561ad
No related branches found
No related tags found
2 merge requests!510Release,!228New bindings for api2.0
...@@ -26,8 +26,9 @@ func TestSingleUseJsonMarshals(t *testing.T) { ...@@ -26,8 +26,9 @@ func TestSingleUseJsonMarshals(t *testing.T) {
rng := csprng.NewSystemRNG() rng := csprng.NewSystemRNG()
rng.Read(payload) rng.Read(payload)
sendReport := SingleUseSendReport{ sendReport := SingleUseSendReport{
RoundsList: rl, RoundsList: rl,
EphID: ephId, EphID: ephId.EphId.Int64(),
ReceptionID: ephId.Source.Marshal(),
} }
srm, err := json.Marshal(sendReport) srm, err := json.Marshal(sendReport)
if err != nil { if err != nil {
...@@ -39,7 +40,8 @@ func TestSingleUseJsonMarshals(t *testing.T) { ...@@ -39,7 +40,8 @@ func TestSingleUseJsonMarshals(t *testing.T) {
responseReport := SingleUseResponseReport{ responseReport := SingleUseResponseReport{
RoundsList: rl, RoundsList: rl,
Payload: payload, Payload: payload,
ReceptionID: ephId, ReceptionID: ephId.Source.Marshal(),
EphID: ephId.EphId.Int64(),
Err: nil, Err: nil,
} }
rrm, err := json.Marshal(responseReport) rrm, err := json.Marshal(responseReport)
...@@ -50,10 +52,11 @@ func TestSingleUseJsonMarshals(t *testing.T) { ...@@ -50,10 +52,11 @@ func TestSingleUseJsonMarshals(t *testing.T) {
} }
callbackReport := SingleUseCallbackReport{ callbackReport := SingleUseCallbackReport{
RoundsList: rl, RoundsList: rl,
Payload: payload, Payload: payload,
Partner: rid, Partner: rid,
EphID: ephId, EphID: ephId.EphId.Int64(),
ReceptionID: ephId.Source.Marshal(),
} }
crm, err := json.Marshal(callbackReport) crm, err := json.Marshal(callbackReport)
if err != nil { if err != nil {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment