Skip to content

Commit

Permalink
Test for correct negative filtering when listing registered directories.
Browse files Browse the repository at this point in the history
  • Loading branch information
LTLA committed Sep 14, 2024
1 parent 2849b17 commit e3dddea
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions database_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1758,6 +1758,16 @@ func TestListRegisteredDirectories(t *testing.T) {
if out[0].User != desired {
t.Fatalf("unexpected entry %v", out[0])
}

desired = "bar_user2"
query.User = &desired
out, err = listRegisteredDirectories(dbconn, &query)
if err != nil {
t.Fatal(err)
}
if len(out) != 0 {
t.Fatal("should have found no matching paths")
}
})
}

Expand Down

0 comments on commit e3dddea

Please sign in to comment.