mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 09:05:55 +00:00
fix column key translation test
It previously checked hardcoded values. This does not work due to shard width differences.
This commit is contained in:
parent
39337fa41b
commit
c2f58f7af0
1 changed files with 9 additions and 6 deletions
|
|
@ -713,16 +713,19 @@ func TestClientAgainstCluster(t *testing.T) {
|
|||
setup(t, cli)
|
||||
defer tearDown(t, cli)
|
||||
|
||||
trans, err := cli.CreateIndexKeys(testIndexKeyTranslation, "key1", "key2")
|
||||
created, err := cli.CreateIndexKeys(testIndexKeyTranslation, "key1", "key2")
|
||||
require.NoErrorf(t, err, "CreateIndexKeys")
|
||||
if _, ok := created["key1"]; !ok {
|
||||
t.Error("key1 missing")
|
||||
}
|
||||
if _, ok := created["key2"]; !ok {
|
||||
t.Error("key2 missing")
|
||||
}
|
||||
|
||||
target := map[string]uint64{"key1": 65011713, "key2": 63963137}
|
||||
require.Equalf(t, target, trans, "CreateIndexKeys")
|
||||
|
||||
trans, err = cli.FindIndexKeys(testIndexKeyTranslation, "key1", "key2", "key3")
|
||||
found, err := cli.FindIndexKeys(testIndexKeyTranslation, "key1", "key2", "key3")
|
||||
require.NoErrorf(t, err, "FindIndexKeys")
|
||||
|
||||
require.Equalf(t, target, trans, "FindIndexKeys")
|
||||
require.Equalf(t, created, found, "IndexKeys")
|
||||
})
|
||||
|
||||
t.Run("Transactions", func(t *testing.T) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue