feat(event): adding more helpers.

This commit is contained in:
kehiy
2024-09-19 14:12:41 +03:30
committed by fiatjaf_
parent c8c295f839
commit 47243fdcc4
4 changed files with 25 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ func TestCount(t *testing.T) {
defer rl.Close()
count, err := rl.Count(context.Background(), Filters{
{Kinds: []int{KindContactList}, Tags: TagMap{"p": []string{"3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d"}}},
{Kinds: []int{KindFollowList}, Tags: TagMap{"p": []string{"3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d"}}},
})
assert.NoError(t, err)
assert.Greater(t, count, int64(0))