From 54490c989f0382641d581fa719d7117858f9e0d7 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz <vlorentz@softwareheritage.org> Date: Tue, 9 Apr 2019 18:30:50 +0200 Subject: [PATCH] Limit Content.length to what the pgsql storage supports. --- swh/model/hypothesis_strategies.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swh/model/hypothesis_strategies.py b/swh/model/hypothesis_strategies.py index 26d4a817..59f82146 100644 --- a/swh/model/hypothesis_strategies.py +++ b/swh/model/hypothesis_strategies.py @@ -129,7 +129,7 @@ def contents(draw): return draw(builds( Content, - length=integers(0), + length=integers(min_value=0, max_value=2**63-1), sha1=sha1(), sha1_git=sha1_git(), sha256=binary(min_size=32, max_size=32), -- GitLab