PR Unit test fixes

This commit is contained in:
Bob12224 2026-03-12 15:22:51 -07:00 committed by Bob
parent 16f31ba796
commit 39c5a98142
2 changed files with 3 additions and 3 deletions

View file

@ -41,7 +41,7 @@ func Test_fileFileStore_Create(t *testing.T) {
width = 640
height = 480
framerate = 2.345
frames = 3
frames int64 = 3
bitrate int64 = 234
videoCodec = "videoCodec"
audioCodec = "audioCodec"
@ -260,7 +260,7 @@ func Test_fileStore_Update(t *testing.T) {
width = 640
height = 480
framerate = 2.345
frames = 3
frames int64 = 3
bitrate int64 = 234
videoCodec = "videoCodec"
audioCodec = "audioCodec"

View file

@ -925,7 +925,7 @@ func makeFile(i int) models.File {
VideoCodec: getFileStringValue(i, "videoCodec"),
AudioCodec: getFileStringValue(i, "audioCodec"),
FrameRate: getFileDuration(i) * 2,
Frames: getFileDuration(i) * 3,
Frames: int64(getFileDuration(i)) * 3,
BitRate: int64(getFileDuration(i)) * 3,
}
} else if i >= fileIdxStartImageFiles && i < fileIdxStartGalleryFiles {