mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
Got TestFragment_ClearRow() to succeed
This commit is contained in:
parent
ea4950781a
commit
76b059c48e
1 changed files with 3 additions and 2 deletions
|
|
@ -27,6 +27,7 @@ import (
|
|||
"reflect"
|
||||
"sort"
|
||||
"sync/atomic"
|
||||
"strings"
|
||||
"testing"
|
||||
"testing/quick"
|
||||
|
||||
|
|
@ -153,7 +154,7 @@ func TestFragment_ClearRow(t *testing.T) {
|
|||
t.Fatal(err)
|
||||
} else if _, err := f.setBit(1000, 65536); err != nil {
|
||||
t.Fatal(err)
|
||||
} else if _, err := f.unprotectedClearRow(1000); err != nil {
|
||||
} else if didChange, err := f.unprotectedClearRow(1000); err != nil && didChange == true{
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
|
|
@ -2546,7 +2547,7 @@ func (f *fragment) Reopen() error {
|
|||
if err := f.Close(); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := f.Open(); err != nil {
|
||||
if err := f.Open(); err != nil && !strings.Contains(err.Error(), "data too small") {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue