From dfd410a28ebbcc900d28f6cdce8559856e686092 Mon Sep 17 00:00:00 2001 From: Thomas Letan Date: Wed, 15 Mar 2023 14:15:45 +0100 Subject: [PATCH] Proto,tests: Fix flakiness of frozen bonds PBT --- .../lib_protocol/test/integration/test_frozen_bonds.ml | 4 ++-- .../lib_protocol/test/integration/test_frozen_bonds.ml | 4 ++-- .../lib_protocol/test/integration/test_frozen_bonds.ml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/proto_015_PtLimaPt/lib_protocol/test/integration/test_frozen_bonds.ml b/src/proto_015_PtLimaPt/lib_protocol/test/integration/test_frozen_bonds.ml index 45caf4c30d47..eee8499f62ed 100644 --- a/src/proto_015_PtLimaPt/lib_protocol/test/integration/test_frozen_bonds.ml +++ b/src/proto_015_PtLimaPt/lib_protocol/test/integration/test_frozen_bonds.ml @@ -39,12 +39,12 @@ open Test_tez let ( >>>=? ) x f = x >|= Environment.wrap_tzresult >>=? f let big_random_amount () = - match Tez.of_mutez (Int64.add 1L (Random.int64 10_000L)) with + match Tez.of_mutez (Int64.add 100_000L (Random.int64 1_000_000L)) with | None -> assert false | Some x -> x let small_random_amount () = - match Tez.of_mutez (Int64.add 1L (Random.int64 1_000L)) with + match Tez.of_mutez (Int64.add 1_000L (Random.int64 10_000L)) with | None -> assert false | Some x -> x diff --git a/src/proto_016_PtMumbai/lib_protocol/test/integration/test_frozen_bonds.ml b/src/proto_016_PtMumbai/lib_protocol/test/integration/test_frozen_bonds.ml index 15f1f092c59e..050c65453a05 100644 --- a/src/proto_016_PtMumbai/lib_protocol/test/integration/test_frozen_bonds.ml +++ b/src/proto_016_PtMumbai/lib_protocol/test/integration/test_frozen_bonds.ml @@ -39,12 +39,12 @@ open Test_tez let ( >>>=? ) x f = x >|= Environment.wrap_tzresult >>=? f let big_random_amount () = - match Tez.of_mutez (Int64.add 1L (Random.int64 10_000L)) with + match Tez.of_mutez (Int64.add 100_000L (Random.int64 1_000_000L)) with | None -> assert false | Some x -> x let small_random_amount () = - match Tez.of_mutez (Int64.add 1L (Random.int64 1_000L)) with + match Tez.of_mutez (Int64.add 1_000L (Random.int64 10_000L)) with | None -> assert false | Some x -> x diff --git a/src/proto_alpha/lib_protocol/test/integration/test_frozen_bonds.ml b/src/proto_alpha/lib_protocol/test/integration/test_frozen_bonds.ml index 5a8bde97f527..e094d2e082a6 100644 --- a/src/proto_alpha/lib_protocol/test/integration/test_frozen_bonds.ml +++ b/src/proto_alpha/lib_protocol/test/integration/test_frozen_bonds.ml @@ -39,12 +39,12 @@ open Test_tez let ( >>>=? ) x f = x >|= Environment.wrap_tzresult >>=? f let big_random_amount () = - match Tez.of_mutez (Int64.add 1L (Random.int64 10_000L)) with + match Tez.of_mutez (Int64.add 100_000L (Random.int64 1_000_000L)) with | None -> assert false | Some x -> x let small_random_amount () = - match Tez.of_mutez (Int64.add 1L (Random.int64 1_000L)) with + match Tez.of_mutez (Int64.add 1_000L (Random.int64 10_000L)) with | None -> assert false | Some x -> x -- GitLab