mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-05 16:15:56 +00:00
Merge pull request #144 from travisturner/test-logic
fixes a minor logic bug in the cluster tests
This commit is contained in:
commit
730f52d401
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