From 39c5a98142c2d8e6a890f8006ddefcab574afb06 Mon Sep 17 00:00:00 2001 From: Bob12224 <241886672+bob12224@users.noreply.github.com> Date: Thu, 12 Mar 2026 15:22:51 -0700 Subject: [PATCH] PR Unit test fixes --- pkg/sqlite/file_test.go | 4 ++-- pkg/sqlite/setup_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/sqlite/file_test.go b/pkg/sqlite/file_test.go index b1fd7afba..bd971e3a5 100644 --- a/pkg/sqlite/file_test.go +++ b/pkg/sqlite/file_test.go @@ -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" diff --git a/pkg/sqlite/setup_test.go b/pkg/sqlite/setup_test.go index 052625293..fd4c14527 100644 --- a/pkg/sqlite/setup_test.go +++ b/pkg/sqlite/setup_test.go @@ -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 {