Skip to content

Commit 6e93a75

Browse files
Fix test
1 parent 04d4946 commit 6e93a75

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

test/dummy.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func (d *DummyDA) GetIDs(ctx context.Context, height uint64, _ da.Namespace) ([]
9494
if !ok {
9595
return nil, nil
9696
}
97-
97+
9898
ids := make([]da.ID, len(kvps))
9999
for i, kv := range kvps {
100100
ids[i] = kv.key

test/test_suite.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@ func ConcurrentReadWriteTest(t *testing.T, d da.DA) {
137137
defer wg.Done()
138138
for i := uint64(1); i <= 100; i++ {
139139
_, err := d.GetIDs(ctx, i, []byte{})
140-
assert.NoError(t, err)
140+
if err != nil {
141+
assert.Equal(t, err.Error(), ErrTooHigh.Error())
142+
}
141143
}
142144
}()
143145

0 commit comments

Comments
 (0)