Skip to content

Commit

Permalink
fixed asserts in TestLoadFileMetadata tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fullerzz committed May 26, 2024
1 parent 07fc2ba commit 0f63676
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ func TestLoadFileMetadata(t *testing.T) {
expectedFileMetadata := FileMetadata{Name: "baxter.jpg", Tags: []string{}, Link: "baxter.jpg"}
expected := UploadedFiles{Files: []FileMetadata{expectedFileMetadata}}
uploadedFiles = loadFileMetadata("testdata/metadata.json")
if assert.NotEmpty(t, conf) {
assert.Equal(t, "/opt/picloud/uploads/", conf.FilePrefix)
if assert.NotEmpty(t, uploadedFiles) {
assert.Equal(t, expected, uploadedFiles)
}
}
Expand Down

0 comments on commit 0f63676

Please sign in to comment.