Merge pull request #7753 from blockscout/fix-missing-ranges-collector-test

Fix missing ranges collector test
pull/7758/head
Victor Baranov 1 year ago committed by GitHub
commit 5ca1cd5dc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      CHANGELOG.md
  2. 2
      apps/indexer/test/indexer/block/catchup/missing_ranges_collector_test.exs

@ -36,7 +36,7 @@
- [#7516](https://github.com/blockscout/blockscout/pull/7516) - Fix shrinking logo in Safari - [#7516](https://github.com/blockscout/blockscout/pull/7516) - Fix shrinking logo in Safari
- [#7590](https://github.com/blockscout/blockscout/pull/7590) - Drop genesis block in internal transactions fetcher - [#7590](https://github.com/blockscout/blockscout/pull/7590) - Drop genesis block in internal transactions fetcher
- [#7639](https://github.com/blockscout/blockscout/pull/7639) - Fix contract creation transactions - [#7639](https://github.com/blockscout/blockscout/pull/7639) - Fix contract creation transactions
- [#7724](https://github.com/blockscout/blockscout/pull/7724) - Move MissingRangesCollector init logic to handle_continue - [#7724](https://github.com/blockscout/blockscout/pull/7724), [#7753](https://github.com/blockscout/blockscout/pull/7753) - Move MissingRangesCollector init logic to handle_continue
- [#7751](https://github.com/blockscout/blockscout/pull/7751) - Add missing method_to_url params for trace transactions - [#7751](https://github.com/blockscout/blockscout/pull/7751) - Add missing method_to_url params for trace transactions
### Chore ### Chore

@ -14,7 +14,7 @@ defmodule Indexer.Block.Catchup.MissingRangesCollectorTest do
insert(:block, number: 1_000_000) insert(:block, number: 1_000_000)
insert(:block, number: 500_123) insert(:block, number: 500_123)
MissingRangesCollector.start_link([]) MissingRangesCollector.start_link([])
Process.sleep(500) Process.sleep(1000)
assert [999_999..900_000//-1] = batch = MissingBlockRange.get_latest_batch(1) assert [999_999..900_000//-1] = batch = MissingBlockRange.get_latest_batch(1)
MissingBlockRange.clear_batch(batch) MissingBlockRange.clear_batch(batch)

Loading…
Cancel
Save