From dd30bc5f495d7e745ed2a0dff1ce1346875d4c66 Mon Sep 17 00:00:00 2001 From: gmega Date: Thu, 27 Jun 2024 13:42:39 -0300 Subject: [PATCH] fix API integration test --- tests/integration/testrestapi.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/testrestapi.nim b/tests/integration/testrestapi.nim index cbad0580..1834dcf2 100644 --- a/tests/integration/testrestapi.nim +++ b/tests/integration/testrestapi.nim @@ -41,11 +41,11 @@ twonodessuite "REST API", debug1 = false, debug2 = false: test "request storage fails for datasets that are too small": let cid = client1.upload("some file contents").get - let response = client1.requestStorageRaw(cid, duration=10.u256, reward=2.u256, proofProbability=3.u256, collateral=200.u256, expiry=9) + let response = client1.requestStorageRaw(cid, duration=10.u256, reward=2.u256, proofProbability=3.u256, nodes=2, collateral=200.u256, expiry=9) check: response.status == "400 Bad Request" - response.body == "Insufficient blocks, increased dataset size required" + response.body == "Dataset too small for erasure parameters, need at least " & $(2*DefaultBlockSize.int) & " bytes" test "request storage succeeds for sufficiently sized datasets": let data = await RandomChunker.example(blocks=2)