mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-21 19:26:40 +00:00
fix up tests expecting differing default values
This commit is contained in:
parent
a1966f723d
commit
fedb1adb5d
|
@ -120,7 +120,7 @@ func (suite *InstancePatchTestSuite) TestInstancePatch1() {
|
||||||
"image/apng",
|
"image/apng",
|
||||||
"audio/ogg",
|
"audio/ogg",
|
||||||
"video/ogg",
|
"video/ogg",
|
||||||
"audio/x-m4a",
|
"audio/mp4",
|
||||||
"video/mp4",
|
"video/mp4",
|
||||||
"video/quicktime",
|
"video/quicktime",
|
||||||
"audio/x-ms-wma",
|
"audio/x-ms-wma",
|
||||||
|
@ -261,7 +261,7 @@ func (suite *InstancePatchTestSuite) TestInstancePatch2() {
|
||||||
"image/apng",
|
"image/apng",
|
||||||
"audio/ogg",
|
"audio/ogg",
|
||||||
"video/ogg",
|
"video/ogg",
|
||||||
"audio/x-m4a",
|
"audio/mp4",
|
||||||
"video/mp4",
|
"video/mp4",
|
||||||
"video/quicktime",
|
"video/quicktime",
|
||||||
"audio/x-ms-wma",
|
"audio/x-ms-wma",
|
||||||
|
@ -402,7 +402,7 @@ func (suite *InstancePatchTestSuite) TestInstancePatch3() {
|
||||||
"image/apng",
|
"image/apng",
|
||||||
"audio/ogg",
|
"audio/ogg",
|
||||||
"video/ogg",
|
"video/ogg",
|
||||||
"audio/x-m4a",
|
"audio/mp4",
|
||||||
"video/mp4",
|
"video/mp4",
|
||||||
"video/quicktime",
|
"video/quicktime",
|
||||||
"audio/x-ms-wma",
|
"audio/x-ms-wma",
|
||||||
|
@ -594,7 +594,7 @@ func (suite *InstancePatchTestSuite) TestInstancePatch6() {
|
||||||
"image/apng",
|
"image/apng",
|
||||||
"audio/ogg",
|
"audio/ogg",
|
||||||
"video/ogg",
|
"video/ogg",
|
||||||
"audio/x-m4a",
|
"audio/mp4",
|
||||||
"video/mp4",
|
"video/mp4",
|
||||||
"video/quicktime",
|
"video/quicktime",
|
||||||
"audio/x-ms-wma",
|
"audio/x-ms-wma",
|
||||||
|
@ -757,7 +757,7 @@ func (suite *InstancePatchTestSuite) TestInstancePatch8() {
|
||||||
"image/apng",
|
"image/apng",
|
||||||
"audio/ogg",
|
"audio/ogg",
|
||||||
"video/ogg",
|
"video/ogg",
|
||||||
"audio/x-m4a",
|
"audio/mp4",
|
||||||
"video/mp4",
|
"video/mp4",
|
||||||
"video/quicktime",
|
"video/quicktime",
|
||||||
"audio/x-ms-wma",
|
"audio/x-ms-wma",
|
||||||
|
@ -939,7 +939,7 @@ func (suite *InstancePatchTestSuite) TestInstancePatch9() {
|
||||||
"image/apng",
|
"image/apng",
|
||||||
"audio/ogg",
|
"audio/ogg",
|
||||||
"video/ogg",
|
"video/ogg",
|
||||||
"audio/x-m4a",
|
"audio/mp4",
|
||||||
"video/mp4",
|
"video/mp4",
|
||||||
"video/quicktime",
|
"video/quicktime",
|
||||||
"audio/x-ms-wma",
|
"audio/x-ms-wma",
|
||||||
|
|
|
@ -664,7 +664,7 @@ func (suite *ManagerTestSuite) TestOpusProcess() {
|
||||||
Duration: util.Ptr(float32(122.10006)),
|
Duration: util.Ptr(float32(122.10006)),
|
||||||
Bitrate: util.Ptr(uint64(116426)),
|
Bitrate: util.Ptr(uint64(116426)),
|
||||||
}, attachment.FileMeta.Original)
|
}, attachment.FileMeta.Original)
|
||||||
suite.Equal("audio/ogg", attachment.File.ContentType)
|
suite.Equal("audio/opus", attachment.File.ContentType)
|
||||||
suite.Equal(1776956, attachment.File.FileSize)
|
suite.Equal(1776956, attachment.File.FileSize)
|
||||||
suite.Empty(attachment.Blurhash)
|
suite.Empty(attachment.Blurhash)
|
||||||
|
|
||||||
|
|
|
@ -1958,7 +1958,7 @@ func (suite *InternalToFrontendTestSuite) TestInstanceV1ToFrontend() {
|
||||||
"image/apng",
|
"image/apng",
|
||||||
"audio/ogg",
|
"audio/ogg",
|
||||||
"video/ogg",
|
"video/ogg",
|
||||||
"audio/x-m4a",
|
"audio/mp4",
|
||||||
"video/mp4",
|
"video/mp4",
|
||||||
"video/quicktime",
|
"video/quicktime",
|
||||||
"audio/x-ms-wma",
|
"audio/x-ms-wma",
|
||||||
|
@ -2103,7 +2103,7 @@ func (suite *InternalToFrontendTestSuite) TestInstanceV2ToFrontend() {
|
||||||
"image/apng",
|
"image/apng",
|
||||||
"audio/ogg",
|
"audio/ogg",
|
||||||
"video/ogg",
|
"video/ogg",
|
||||||
"audio/x-m4a",
|
"audio/mp4",
|
||||||
"video/mp4",
|
"video/mp4",
|
||||||
"video/quicktime",
|
"video/quicktime",
|
||||||
"audio/x-ms-wma",
|
"audio/x-ms-wma",
|
||||||
|
|
Loading…
Reference in a new issue