Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nivBlox committed Jan 2, 2022
1 parent 2aad2d4 commit a873489
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions ibft/controller/mediator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,11 @@ func TestMediator_AddListener(t *testing.T) {
}

time.Sleep(time.Millisecond * 100)
objs, err := db.GetAllByCollection([]byte("test"))
require.NoError(t, err)
var objs []basedb.Obj
require.NoError(t, db.GetAll([]byte("test"), func(i int, obj basedb.Obj) error {
objs = append(objs, obj)
require.Equal(t, uint64(i+1), binary.LittleEndian.Uint64(obj.Key))
return nil
}))
require.Equal(t, 4, len(objs))
require.Equal(t, uint64(1), binary.LittleEndian.Uint64(objs[0].Key))
require.Equal(t, uint64(4), binary.LittleEndian.Uint64(objs[3].Key))
}

0 comments on commit a873489

Please sign in to comment.