mirror of
https://github.com/stashapp/stash.git
synced 2026-05-09 05:05:29 +02:00
test(sqlite): update duplicate checking tests
Updates the unit tests to pass a nil scene filter, matching the new FindDuplicates method signature.
This commit is contained in:
parent
864412c735
commit
f87f9aa2ff
1 changed files with 2 additions and 2 deletions
|
|
@ -4631,7 +4631,7 @@ func TestSceneStore_FindDuplicates(t *testing.T) {
|
|||
withRollbackTxn(func(ctx context.Context) error {
|
||||
distance := 0
|
||||
durationDiff := -1.
|
||||
got, err := qb.FindDuplicates(ctx, distance, durationDiff)
|
||||
got, err := qb.FindDuplicates(ctx, distance, durationDiff, nil)
|
||||
if err != nil {
|
||||
t.Errorf("SceneStore.FindDuplicates() error = %v", err)
|
||||
return nil
|
||||
|
|
@ -4641,7 +4641,7 @@ func TestSceneStore_FindDuplicates(t *testing.T) {
|
|||
|
||||
distance = 1
|
||||
durationDiff = -1.
|
||||
got, err = qb.FindDuplicates(ctx, distance, durationDiff)
|
||||
got, err = qb.FindDuplicates(ctx, distance, durationDiff, nil)
|
||||
if err != nil {
|
||||
t.Errorf("SceneStore.FindDuplicates() error = %v", err)
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Reference in a new issue