From 6da36ce324957b93172fab2e52818bab08c811f1 Mon Sep 17 00:00:00 2001 From: Geod24 Date: Mon, 19 Apr 2021 13:42:04 +0900 Subject: [PATCH] Fix broken test in Amount This test was erroring out but was accidentally merged due to the current flakyness of the CI. --- source/agora/common/Amount.d | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/agora/common/Amount.d b/source/agora/common/Amount.d index 6ffa5c62420..2b4002dc6dc 100644 --- a/source/agora/common/Amount.d +++ b/source/agora/common/Amount.d @@ -529,9 +529,9 @@ unittest assert(amt == Amount(1)); assert(is_valid); - amt = Amount(ulong.max); - is_valid = amt.percentage(2); - assert(is_valid); + amt = Amount.MaxUnitSupply; + assert(amt.percentage(100)); + assert(!amt.percentage(101)); } unittest