Skip to content

Commit 25e8497

Browse files
committed
Fix lints from month old test in #207
1 parent f8e0b1a commit 25e8497

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/msc2716_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -399,15 +399,15 @@ func TestImportHistoricalMessages(t *testing.T) {
399399
})
400400

401401
txnId := getTxnID("duplicateinsertion-txn")
402-
res := alice.DoFunc(t, "PUT", []string{"_matrix", "client", "r0", "rooms", roomID, "send", insertionEventType, txnId}, map[string]interface{}{
402+
res := alice.DoFunc(t, "PUT", []string{"_matrix", "client", "r0", "rooms", roomID, "send", insertionEventType, txnId}, client.WithJSONBody(t, map[string]interface{}{
403403
nextBatchIDContentField: "same",
404404
historicalContentField: true,
405-
})
405+
}))
406406

407407
// We expect the send request for the duplicate insertion event to fail
408408
expectedStatus := 400
409409
if res.StatusCode != expectedStatus {
410-
t.Fatalf("Expected HTTP Status to be %s but received %s", expectedStatus, res.StatusCode)
410+
t.Fatalf("Expected HTTP Status to be %d but received %d", expectedStatus, res.StatusCode)
411411
}
412412
})
413413

0 commit comments

Comments
 (0)