[#1692] metabase/test: Fix end of iteration error check
This is not good: ``` BenchmarkListWithCursor/1_item-8 --- FAIL: BenchmarkListWithCursor/1_item-8 list_test.go:63: error: end of object listing ``` Change-Id: I61b70937ce30fefaf16ebeb0cdb51bdd39096061 Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
7df2912a83
commit
60cea8c714
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ func benchmarkListWithCursor(b *testing.B, db *meta.DB, batchSize int) {
|
|||
for range b.N {
|
||||
res, err := db.ListWithCursor(context.Background(), prm)
|
||||
if err != nil {
|
||||
if errors.Is(err, meta.ErrEndOfListing) {
|
||||
if !errors.Is(err, meta.ErrEndOfListing) {
|
||||
b.Fatalf("error: %v", err)
|
||||
}
|
||||
prm.SetCursor(nil)
|
||||
|
|
Loading…
Add table
Reference in a new issue