Skip to content

Commit

Permalink
Fix lints from month old test in #207 (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
MadLittleMods authored Oct 26, 2021
1 parent fdeba70 commit 0dd587d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/msc2716_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
})

Expand Down

0 comments on commit 0dd587d

Please sign in to comment.