mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
fixes a minor logic bug in the cluster tests
This commit is contained in:
parent
00f302142f
commit
b0b0de5703
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ func TestCluster_Partition(t *testing.T) {
|
|||
c.PartitionN = partitionN
|
||||
|
||||
partitionID := c.Partition(db, slice)
|
||||
if partitionID < 0 || partitionID > partitionN {
|
||||
if partitionID < 0 || partitionID >= partitionN {
|
||||
t.Errorf("partition out of range: slice=%d, p=%d, n=%d", slice, partitionID, partitionN)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue