From fedb1adb5d8991171eaad413dfe61bb671bc8efc Mon Sep 17 00:00:00 2001 From: kim Date: Mon, 4 Nov 2024 13:18:51 +0000 Subject: [PATCH] fix up tests expecting differing default values --- internal/api/client/instance/instancepatch_test.go | 12 ++++++------ internal/media/manager_test.go | 2 +- internal/typeutils/internaltofrontend_test.go | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/internal/api/client/instance/instancepatch_test.go b/internal/api/client/instance/instancepatch_test.go index 5c7923adc..504fd7eb9 100644 --- a/internal/api/client/instance/instancepatch_test.go +++ b/internal/api/client/instance/instancepatch_test.go @@ -120,7 +120,7 @@ func (suite *InstancePatchTestSuite) TestInstancePatch1() { "image/apng", "audio/ogg", "video/ogg", - "audio/x-m4a", + "audio/mp4", "video/mp4", "video/quicktime", "audio/x-ms-wma", @@ -261,7 +261,7 @@ func (suite *InstancePatchTestSuite) TestInstancePatch2() { "image/apng", "audio/ogg", "video/ogg", - "audio/x-m4a", + "audio/mp4", "video/mp4", "video/quicktime", "audio/x-ms-wma", @@ -402,7 +402,7 @@ func (suite *InstancePatchTestSuite) TestInstancePatch3() { "image/apng", "audio/ogg", "video/ogg", - "audio/x-m4a", + "audio/mp4", "video/mp4", "video/quicktime", "audio/x-ms-wma", @@ -594,7 +594,7 @@ func (suite *InstancePatchTestSuite) TestInstancePatch6() { "image/apng", "audio/ogg", "video/ogg", - "audio/x-m4a", + "audio/mp4", "video/mp4", "video/quicktime", "audio/x-ms-wma", @@ -757,7 +757,7 @@ func (suite *InstancePatchTestSuite) TestInstancePatch8() { "image/apng", "audio/ogg", "video/ogg", - "audio/x-m4a", + "audio/mp4", "video/mp4", "video/quicktime", "audio/x-ms-wma", @@ -939,7 +939,7 @@ func (suite *InstancePatchTestSuite) TestInstancePatch9() { "image/apng", "audio/ogg", "video/ogg", - "audio/x-m4a", + "audio/mp4", "video/mp4", "video/quicktime", "audio/x-ms-wma", diff --git a/internal/media/manager_test.go b/internal/media/manager_test.go index c281b1000..e175369f5 100644 --- a/internal/media/manager_test.go +++ b/internal/media/manager_test.go @@ -664,7 +664,7 @@ func (suite *ManagerTestSuite) TestOpusProcess() { Duration: util.Ptr(float32(122.10006)), Bitrate: util.Ptr(uint64(116426)), }, attachment.FileMeta.Original) - suite.Equal("audio/ogg", attachment.File.ContentType) + suite.Equal("audio/opus", attachment.File.ContentType) suite.Equal(1776956, attachment.File.FileSize) suite.Empty(attachment.Blurhash) diff --git a/internal/typeutils/internaltofrontend_test.go b/internal/typeutils/internaltofrontend_test.go index a01060ebc..cf11655ca 100644 --- a/internal/typeutils/internaltofrontend_test.go +++ b/internal/typeutils/internaltofrontend_test.go @@ -1958,7 +1958,7 @@ func (suite *InternalToFrontendTestSuite) TestInstanceV1ToFrontend() { "image/apng", "audio/ogg", "video/ogg", - "audio/x-m4a", + "audio/mp4", "video/mp4", "video/quicktime", "audio/x-ms-wma", @@ -2103,7 +2103,7 @@ func (suite *InternalToFrontendTestSuite) TestInstanceV2ToFrontend() { "image/apng", "audio/ogg", "video/ogg", - "audio/x-m4a", + "audio/mp4", "video/mp4", "video/quicktime", "audio/x-ms-wma",