From 25e8497e183ef75ddc7386776b43c8e32a4829b8 Mon Sep 17 00:00:00 2001 From: Eric Eastwood Date: Tue, 26 Oct 2021 16:56:05 -0500 Subject: [PATCH] Fix lints from month old test in #207 --- tests/msc2716_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/msc2716_test.go b/tests/msc2716_test.go index 4fde3f79..852a2ccf 100644 --- a/tests/msc2716_test.go +++ b/tests/msc2716_test.go @@ -399,15 +399,15 @@ func TestImportHistoricalMessages(t *testing.T) { }) txnId := getTxnID("duplicateinsertion-txn") - res := alice.DoFunc(t, "PUT", []string{"_matrix", "client", "r0", "rooms", roomID, "send", insertionEventType, txnId}, map[string]interface{}{ + res := alice.DoFunc(t, "PUT", []string{"_matrix", "client", "r0", "rooms", roomID, "send", insertionEventType, txnId}, client.WithJSONBody(t, map[string]interface{}{ nextBatchIDContentField: "same", historicalContentField: true, - }) + })) // We expect the send request for the duplicate insertion event to fail expectedStatus := 400 if res.StatusCode != expectedStatus { - t.Fatalf("Expected HTTP Status to be %s but received %s", expectedStatus, res.StatusCode) + t.Fatalf("Expected HTTP Status to be %d but received %d", expectedStatus, res.StatusCode) } })