0
0

try testing slightly different way

This commit is contained in:
Marty Schoch 2016-01-07 11:06:18 -05:00
parent cd940cc375
commit e54db33346

View File

@ -12,6 +12,7 @@ package firestorm
import (
"runtime"
"testing"
"time"
"github.com/blevesearch/bleve/index"
"github.com/blevesearch/bleve/index/store/gtreap"
@ -42,7 +43,7 @@ func TestDictUpdater(t *testing.T) {
for len(f.(*Firestorm).dictUpdater.incoming) > 0 {
runtime.Gosched()
}
f.(*Firestorm).dictUpdater.update()
f.(*Firestorm).dictUpdater.waitTasksDone(5 * time.Second)
// assert that dictionary rows are correct
reader, err := f.(*Firestorm).store.Reader()