Index: Improve CLI command test assertions

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer 2022-09-14 22:14:17 +02:00
parent 7f70772d86
commit d3d7912b4c

View file

@ -47,7 +47,9 @@ func TestIndexCommand(t *testing.T) {
if l != "" {
// Expected index command output.
assert.NotContains(t, l, "error")
assert.Contains(t, l, "found no .ppignore file")
assert.NotContains(t, l, "warning")
assert.NotContains(t, l, "failed")
assert.Contains(t, l, "closed database connection")
} else {
t.Fatal("log output missing")
}