diff options
author | 2024-11-05 22:16:06 +0000 | |
---|---|---|
committer | 2024-11-05 22:16:06 +0000 | |
commit | 6f4cb2f14e37dc4142ec067f7dc2ed898bf804c2 (patch) | |
tree | aed7ba0725a691cb11b388ca0e4736151a480810 /internal/api | |
parent | [chore] update docs assets path (#3514) (diff) | |
download | gotosocial-6f4cb2f14e37dc4142ec067f7dc2ed898bf804c2.tar.xz |
[bugfix] sets the max value placeholders to MaxInt32 instead of MaxInt (#3517)v0.17.3
* sets the max value placeholders to MaxInt32 instead of MaxInt
* update tests
Diffstat (limited to 'internal/api')
-rw-r--r-- | internal/api/client/instance/instancepatch_test.go | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/internal/api/client/instance/instancepatch_test.go b/internal/api/client/instance/instancepatch_test.go index 3a362f27c..9c4a9118a 100644 --- a/internal/api/client/instance/instancepatch_test.go +++ b/internal/api/client/instance/instancepatch_test.go @@ -130,10 +130,10 @@ func (suite *InstancePatchTestSuite) TestInstancePatch1() { "video/x-matroska" ], "image_size_limit": 41943040, - "image_matrix_limit": 9223372036854775807, + "image_matrix_limit": 2147483647, "video_size_limit": 41943040, - "video_frame_rate_limit": 9223372036854775807, - "video_matrix_limit": 9223372036854775807 + "video_frame_rate_limit": 2147483647, + "video_matrix_limit": 2147483647 }, "polls": { "max_options": 6, @@ -271,10 +271,10 @@ func (suite *InstancePatchTestSuite) TestInstancePatch2() { "video/x-matroska" ], "image_size_limit": 41943040, - "image_matrix_limit": 9223372036854775807, + "image_matrix_limit": 2147483647, "video_size_limit": 41943040, - "video_frame_rate_limit": 9223372036854775807, - "video_matrix_limit": 9223372036854775807 + "video_frame_rate_limit": 2147483647, + "video_matrix_limit": 2147483647 }, "polls": { "max_options": 6, @@ -412,10 +412,10 @@ func (suite *InstancePatchTestSuite) TestInstancePatch3() { "video/x-matroska" ], "image_size_limit": 41943040, - "image_matrix_limit": 9223372036854775807, + "image_matrix_limit": 2147483647, "video_size_limit": 41943040, - "video_frame_rate_limit": 9223372036854775807, - "video_matrix_limit": 9223372036854775807 + "video_frame_rate_limit": 2147483647, + "video_matrix_limit": 2147483647 }, "polls": { "max_options": 6, @@ -604,10 +604,10 @@ func (suite *InstancePatchTestSuite) TestInstancePatch6() { "video/x-matroska" ], "image_size_limit": 41943040, - "image_matrix_limit": 9223372036854775807, + "image_matrix_limit": 2147483647, "video_size_limit": 41943040, - "video_frame_rate_limit": 9223372036854775807, - "video_matrix_limit": 9223372036854775807 + "video_frame_rate_limit": 2147483647, + "video_matrix_limit": 2147483647 }, "polls": { "max_options": 6, @@ -767,10 +767,10 @@ func (suite *InstancePatchTestSuite) TestInstancePatch8() { "video/x-matroska" ], "image_size_limit": 41943040, - "image_matrix_limit": 9223372036854775807, + "image_matrix_limit": 2147483647, "video_size_limit": 41943040, - "video_frame_rate_limit": 9223372036854775807, - "video_matrix_limit": 9223372036854775807 + "video_frame_rate_limit": 2147483647, + "video_matrix_limit": 2147483647 }, "polls": { "max_options": 6, @@ -949,10 +949,10 @@ func (suite *InstancePatchTestSuite) TestInstancePatch9() { "video/x-matroska" ], "image_size_limit": 41943040, - "image_matrix_limit": 9223372036854775807, + "image_matrix_limit": 2147483647, "video_size_limit": 41943040, - "video_frame_rate_limit": 9223372036854775807, - "video_matrix_limit": 9223372036854775807 + "video_frame_rate_limit": 2147483647, + "video_matrix_limit": 2147483647 }, "polls": { "max_options": 6, |