Skip to content

Commit fde26d9

Browse files
authored
TestAsyncUpload: download with authentication (#746)
This fixes support with homeservers that enforce authenticated media, such as Synapse in element-hq/synapse#17889
1 parent 547e656 commit fde26d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/csapi/media_async_uploads_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func TestAsyncUpload(t *testing.T) {
6262
})
6363

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

0 commit comments

Comments
 (0)