Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
yarikbratashchuk committed Sep 1, 2024
1 parent 04d4946 commit 6e93a75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/dummy.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func (d *DummyDA) GetIDs(ctx context.Context, height uint64, _ da.Namespace) ([]
if !ok {
return nil, nil
}

ids := make([]da.ID, len(kvps))
for i, kv := range kvps {
ids[i] = kv.key
Expand Down
4 changes: 3 additions & 1 deletion test/test_suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,9 @@ func ConcurrentReadWriteTest(t *testing.T, d da.DA) {
defer wg.Done()
for i := uint64(1); i <= 100; i++ {
_, err := d.GetIDs(ctx, i, []byte{})
assert.NoError(t, err)
if err != nil {
assert.Equal(t, err.Error(), ErrTooHigh.Error())
}
}
}()

Expand Down

0 comments on commit 6e93a75

Please sign in to comment.