From 6b3752fb235be17cf230a1178459b477eab480de Mon Sep 17 00:00:00 2001 From: Brean0 Date: Wed, 14 Aug 2024 12:43:28 +0200 Subject: [PATCH] add await --- protocol/test/hardhat/Field.test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/protocol/test/hardhat/Field.test.js b/protocol/test/hardhat/Field.test.js index 25c0d9ca8b..c2a5898d6c 100644 --- a/protocol/test/hardhat/Field.test.js +++ b/protocol/test/hardhat/Field.test.js @@ -351,28 +351,28 @@ describe("newField", function () { describe("complex DPD", async function () { it("Does not set thisSowTime if Soil > 1", async function () { - mockBeanstalk.setSoilE(to6("3")); + await mockBeanstalk.setSoilE(to6("3")); await beanstalk.connect(user).sow(to6("1"), 0, EXTERNAL); const weather = await beanstalk.weather(); expect(weather.thisSowTime).to.be.equal(parseInt(MAX_UINT32)); }); it("Does set thisSowTime if Soil = 1", async function () { - mockBeanstalk.setSoilE(to6("1")); + await mockBeanstalk.setSoilE(to6("1")); await beanstalk.connect(user).sow(to6("1"), 0, EXTERNAL); const weather = await beanstalk.weather(); expect(weather.thisSowTime).to.be.not.equal(parseInt(MAX_UINT32)); }); it("Does set thisSowTime if Soil < 1", async function () { - mockBeanstalk.setSoilE(to6("1.5")); + await mockBeanstalk.setSoilE(to6("1.5")); await beanstalk.connect(user).sow(to6("1"), 0, EXTERNAL); const weather = await beanstalk.weather(); expect(weather.thisSowTime).to.be.not.equal(parseInt(MAX_UINT32)); }); it("Does not set thisSowTime if Soil already < 1", async function () { - mockBeanstalk.setSoilE(to6("1.5")); + await mockBeanstalk.setSoilE(to6("1.5")); await beanstalk.connect(user).sow(to6("1"), 0, EXTERNAL); const weather = await beanstalk.weather(); await beanstalk.connect(user).sow(to6("0.5"), 0, EXTERNAL);