Skip to content

Commit 2aba7cd

Browse files
committed
Add flush cache in sort test
1 parent 48be60f commit 2aba7cd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/indexer/sort_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ func TestSort(t *testing.T) {
2020
tc.params.Endpoint.Source = spec["content_folder"].(string)
2121
tc.params.Endpoint.SortFileName = spec["sort_file"].(string)
2222
tc.params.Endpoint.IgnoreList = ign
23+
tc.ind.flushCache()
2324
tc.ind.updateTapIndex(tc.params)
2425
ti := tc.ind.getTapIndexCache(tc.params.Endpoint.ID)
2526
if !tc.orderOK(ti, exp, t) {

0 commit comments

Comments
 (0)