mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
postgresqlPackages.pg_textsearch: fix broken test
This commit is contained in:
@@ -31,10 +31,11 @@ postgresqlBuildExtension (finalAttrs: {
|
||||
('PostgreSQL is a powerful, open source object-relational database system');
|
||||
CREATE INDEX documents_content_bm25_idx ON documents USING bm25(content) WITH (text_config='english');
|
||||
'';
|
||||
|
||||
asserts = [
|
||||
{
|
||||
query = "SELECT count(*) FROM documents ORDER BY content <@> 'nix' LIMIT 10";
|
||||
expected = "2";
|
||||
query = "SELECT content FROM documents ORDER BY content <@> 'NixOS' LIMIT 1";
|
||||
expected = "'NixOS provides declarative configuration and reproducible system builds with the Nix package manager'";
|
||||
description = "BM25 index can be queried successfully.";
|
||||
}
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user