From 39b54a96d824ed12f941874bf8eed5aef0859f9d Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Wed, 16 Mar 2022 15:48:17 -0600 Subject: [PATCH] fix tests --- tests/dagger/testmanifest.nim | 7 +++---- tests/dagger/testnode.nim | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/tests/dagger/testmanifest.nim b/tests/dagger/testmanifest.nim index 820a7522..9ad8c30e 100644 --- a/tests/dagger/testmanifest.nim +++ b/tests/dagger/testmanifest.nim @@ -15,7 +15,7 @@ import ./helpers suite "Manifest": test "Should produce valid tree hash checksum": - without var manifest =? Manifest.init( + var manifest = Manifest.new( blocks = @[ Block.init("Block 1".toBytes).tryGet().cid, Block.init("Block 2".toBytes).tryGet().cid, @@ -24,8 +24,7 @@ suite "Manifest": Block.init("Block 5".toBytes).tryGet().cid, Block.init("Block 6".toBytes).tryGet().cid, Block.init("Block 7".toBytes).tryGet().cid, - ]): - fail() + ]).tryGet() let checksum = @[18.byte, 32, 227, 176, 196, 66, 152, @@ -47,7 +46,7 @@ suite "Manifest": ) var - blocksManifest = Manifest.init(blocks).tryGet() + blocksManifest = Manifest.new(blocks).tryGet() let e = blocksManifest.encode().tryGet() diff --git a/tests/dagger/testnode.nim b/tests/dagger/testnode.nim index 557549fa..3536d9e3 100644 --- a/tests/dagger/testnode.nim +++ b/tests/dagger/testnode.nim @@ -56,7 +56,7 @@ suite "Test Node": storeFut = node.store(stream) var - manifest = Manifest.init().tryGet() + manifest = Manifest.new().tryGet() try: while ( @@ -84,7 +84,7 @@ suite "Test Node": test "Retrieve Data Stream": var - manifest = Manifest.init().tryGet() + manifest = Manifest.new().tryGet() original: seq[byte] while (