Commit 53b040ac authored by acud's avatar acud Committed by GitHub

fix: batchstore error assertion order (#1764)

parent 7ea226bf
......@@ -84,7 +84,7 @@ func TestBatchStoreUnreserveEvents(t *testing.T) {
for id := range batches {
b, err := bStore.Get([]byte(id))
if err != nil {
if errors.Is(storage.ErrNotFound, err) {
if errors.Is(err, storage.ErrNotFound) {
continue
}
t.Fatal(err)
......@@ -110,7 +110,7 @@ func TestBatchStoreUnreserveEvents(t *testing.T) {
for id := range batches {
b, err := bStore.Get([]byte(id))
if err != nil {
if errors.Is(storage.ErrNotFound, err) {
if errors.Is(err, storage.ErrNotFound) {
continue
}
t.Fatal(err)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment