From bb33b65d5ba6664233c26233f046cb63a4ed5617 Mon Sep 17 00:00:00 2001 From: Ivan Date: Fri, 24 Sep 2021 14:02:04 +0300 Subject: [PATCH] Experimental check tests --- spec/endpoints/ipfs_endpoints_spec.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/spec/endpoints/ipfs_endpoints_spec.rb b/spec/endpoints/ipfs_endpoints_spec.rb index ad8cf37..97db717 100644 --- a/spec/endpoints/ipfs_endpoints_spec.rb +++ b/spec/endpoints/ipfs_endpoints_spec.rb @@ -35,6 +35,9 @@ ipfs_path = '' context 'when calls add_a_file method' do it 'returns status 200' do + puts "\n" * 3 + puts Dir.pwd + puts "\n" * 3 response = blockfrost_ipfs.add_a_file('./README.md') expect(response[:status]).to eq(200) ipfs_path = response[:body][:ipfs_hash] @@ -48,8 +51,11 @@ end context 'when calls get_localstorage_pinned_object method' do it 'returns status 200 and response body ipfs hash is eq path from add_a_file' do - sleep 3 # To make sure that pin_object method finished work + sleep 5 # To make sure that pin_object method finished work response = blockfrost_ipfs.get_localstorage_pinned_object(ipfs_path) + puts "\n" * 3 + puts response + puts "\n" * 3 expect(response[:status]).to eq(200) expect(response[:body][:ipfs_hash]).to eq(ipfs_path) end