From 889b0b1f2b0c3dc00efedd108be5172922d478e2 Mon Sep 17 00:00:00 2001 From: MikaelVallenet Date: Mon, 30 Dec 2024 10:29:50 +0100 Subject: [PATCH] fix: adapt test --- gno/r/launchpad_grc20/sale_grc20_test.gno | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gno/r/launchpad_grc20/sale_grc20_test.gno b/gno/r/launchpad_grc20/sale_grc20_test.gno index cb751858a..32792da0a 100644 --- a/gno/r/launchpad_grc20/sale_grc20_test.gno +++ b/gno/r/launchpad_grc20/sale_grc20_test.gno @@ -331,6 +331,7 @@ func TestBuy(t *testing.T) { badCoin := std.NewCoins(std.NewCoin("notugnot", 100*10)) manyCoins := std.NewCoins(std.NewCoin("ugnot", 100*10), std.NewCoin("notugnot", 100*10)) notEnoughCoins := std.NewCoins(std.NewCoin("ugnot", 100*5)) + tooManyCoins := std.NewCoins(std.NewCoin("ugnot", 100*11)) emptyCoins := std.NewCoins() realmCoins := std.NewCoins(std.NewCoin("ugnot", 200*10)) @@ -534,7 +535,7 @@ func TestFinalize(t *testing.T) { NewToken("TestFinalizeToken", "TestFinalizeToken", "image", 18, 21_000_000, 23_000_000, true, true) saleID := NewSale("TestFinalizeToken", "", startTimestamp, endTimestamp, 100, 15, 10, 20, true) onGoingSaleID := NewSale("TestFinalizeToken", "", startTimestamp, onGoingEndTimestamp, 100, 15, 10, 20, true) - _ = NewSale("TestFinalizeToken", "", startTimestamp, onGoingEndTimestamp2, 100, 15, 10, 20, true) + onGoingSaleID2 := NewSale("TestFinalizeToken", "", startTimestamp, onGoingEndTimestamp2, 100, 15, 10, 20, true) realmCoins := std.NewCoins(std.NewCoin("ugnot", 200*10))