Skip to content

Commit

Permalink
fix: image preview test
Browse files Browse the repository at this point in the history
  • Loading branch information
alxarno committed Dec 3, 2024
1 parent 9696d7d commit 41f1783
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ The latest version of the TinyTune can be found on the GitHub [releases page](ht
# check that you have ffmpeg installed
ffmpeg -v
wget https://github.com/alxarno/tinytune/releases/download/v1.2.1/tinytune_linux_amd64
wget https://github.com/alxarno/tinytune/releases/download/v1.2.2/tinytune_linux_amd64
mv tinytune_linux_amd64 /usr/local/bin/tinytune
Expand Down
10 changes: 5 additions & 5 deletions pkg/preview/image_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ func TestPreviewImage(t *testing.T) {
}{
{
Name: ".jpg",
SourcePath: "../../test/image.jpg",
DataLength: 3446,
Width: 1527,
Height: 898,
Hash: "b9237e340eb886b5e437e4bc6fd19be612ff6653f3f733c3998ef20f320e6c20",
SourcePath: "../../test/img/image.jpg",
DataLength: 9946,
Width: 750,
Height: 1000,
Hash: "08b43a0683e84c4b26f61c2e143f813e11f08808a792ab86d819c69434db715a",
},
{
Name: ".gif",
Expand Down
4 changes: 2 additions & 2 deletions pkg/preview/preview_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ func TestPreview(t *testing.T) {
dataHash string
}{
{
source: mockSource{image: true, path: "../../test/image.jpg"},
dataHash: "b9237e340eb886b5e437e4bc6fd19be612ff6653f3f733c3998ef20f320e6c20",
source: mockSource{image: true, path: "../../test/img/image.jpg"},
dataHash: "08b43a0683e84c4b26f61c2e143f813e11f08808a792ab86d819c69434db715a",
},
{
source: mockSource{video: true, path: "../../test/sample.mp4"},
Expand Down

0 comments on commit 41f1783

Please sign in to comment.