From 47ae5c5ee2270baf0144770597ef869cf481af95 Mon Sep 17 00:00:00 2001 From: "Olivier Wilkinson (reivilibre)" Date: Mon, 18 Nov 2024 16:57:17 +0000 Subject: [PATCH] TestAsyncUpload: download with authentication This fixes support with homeservers that enforce authenticated media, such as Synapse in https://github.com/element-hq/synapse/pull/17889 --- tests/csapi/media_async_uploads_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/csapi/media_async_uploads_test.go b/tests/csapi/media_async_uploads_test.go index 598f3121..1dc8b42f 100644 --- a/tests/csapi/media_async_uploads_test.go +++ b/tests/csapi/media_async_uploads_test.go @@ -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) }