Skip to content

Commit

Permalink
TestAsyncUpload: download with authentication (#746)
Browse files Browse the repository at this point in the history
This fixes support with homeservers that enforce authenticated media,
such as Synapse in element-hq/synapse#17889
  • Loading branch information
reivilibre authored Nov 20, 2024
1 parent 547e656 commit fde26d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/csapi/media_async_uploads_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func TestAsyncUpload(t *testing.T) {
})

t.Run("Download media", func(t *testing.T) {
content, contentType := alice.DownloadContent(t, mxcURI)
content, contentType := alice.DownloadContentAuthenticated(t, mxcURI)
if !bytes.Equal(data.MatrixPng, content) {
t.Fatalf("uploaded and downloaded content doesn't match: want %v\ngot\n%v", data.MatrixPng, content)
}
Expand Down

0 comments on commit fde26d9

Please sign in to comment.