mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 00:55:55 +00:00
Write fewer bits to test the rowcache behavior
The failure mode in question was pretty predictable and tied to number of snapshots, not to number of bits written, so we can probably use a lot fewer bits and still get good results, but this is really slow under -race testing.
This commit is contained in:
parent
1460756b3f
commit
1952a43ed4
1 changed files with 5 additions and 0 deletions
|
|
@ -111,6 +111,11 @@ func TestFragment_ClearBit(t *testing.T) {
|
|||
func TestFragment_RowcacheMap(t *testing.T) {
|
||||
var done int64
|
||||
f := mustOpenFragment("i", "f", viewStandard, 0, "")
|
||||
// Under -race, this test turns out to take a fairly long time
|
||||
// to run with larger OpN, because we write 50,000 bits to
|
||||
// the bitmap, and everything is being race-detected, and we don't
|
||||
// actually need that many to get the result we care about.
|
||||
f.MaxOpN = 2000
|
||||
defer f.Clean(t)
|
||||
|
||||
ch := make(chan struct{})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue