Revision 653b1f9ada2fb9c7b2189f41fa277fc55c7eab0c authored by Antoine R. Dumont (@ardumont) on 06 August 2020, 10:55:23 UTC, committed by Antoine R. Dumont (@ardumont) on 06 August 2020, 16:50:27 UTC
The existing implementation computed the next token using the tok (adding 1).
It's not good enough as it would skip some contents in case of collision on
tok (collisions exist as the tok here is a noncryptographic hash on 32 bits).

Related to T2518
1 parent be9e958
Raw File
tox.ini
[tox]
envlist=black,flake8,mypy,py3

[testenv]
extras =
  testing
deps =
  pytest-cov
  dev: ipdb
passenv =
  SWH_CASSANDRA_BIN
  SWH_CASSANDRA_LOG
commands =
  pytest \
    !slow: --hypothesis-profile=fast \
    slow:  --hypothesis-profile=slow \
         --cov={envsitepackagesdir}/swh/storage \
         {envsitepackagesdir}/swh/storage \
         --doctest-modules \
         --cov-branch {posargs}

[testenv:black]
skip_install = true
deps =
  black
commands =
  {envpython} -m black --check swh

[testenv:flake8]
skip_install = true
deps =
  flake8
commands =
  {envpython} -m flake8

[testenv:mypy]
extras =
  testing
deps =
  mypy
commands =
  mypy swh
back to top