Skip to content

Commit

Permalink
Fix "Can join and quit Stake Pool"
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Stachyra committed Feb 26, 2021
1 parent 6074c29 commit d1196b3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Expand Up @@ -76,7 +76,7 @@ task :start_node_and_wallet do
end

task :stop_node_and_wallet do
puts "\n >> Set up and start cardano-node and cardano-wallet"
puts "\n >> Stop cardano-node and cardano-wallet"

if is_win?
puts `nssm stop cardano-wallet`
Expand All @@ -92,6 +92,7 @@ task :get_latest_bins do
puts "\n >> Get latest node and wallet binaries from Hydra"

wget(get_latest_binary_url)

if is_win?
puts `unzip binary-dist`
puts `dir`
Expand All @@ -102,7 +103,6 @@ task :get_latest_bins do
puts "cardano-wallet version:"
puts `cardano-wallet.exe version`
else

puts `tar -xvf binary-dist`
puts `cp -r cardano-wallet-*/* ./`

Expand Down
28 changes: 14 additions & 14 deletions spec/nightly_spec.rb
Expand Up @@ -3,20 +3,20 @@
before(:all) do
#shelley tests
@wid = create_fixture_shelley_wallet
@target_id = create_shelley_wallet
@target_id_assets = create_shelley_wallet
@target_id_withdrawal = create_shelley_wallet
@target_id_meta = create_shelley_wallet
@target_id_ttl = create_shelley_wallet
@target_id_pools = create_shelley_wallet
@target_id = create_shelley_wallet("Target tx wallet")
@target_id_assets = create_shelley_wallet("Target asset tx wallet")
@target_id_withdrawal = create_shelley_wallet("Target tx withdrawal wallet")
@target_id_meta = create_shelley_wallet("Target tx metadata wallet")
@target_id_ttl = create_shelley_wallet("Target tx ttl wallet")
@target_id_pools = create_shelley_wallet("Target tx pool join/quit wallet")

#byron tests
@wid_rnd = create_fixture_byron_wallet "random"
@wid_ic = create_fixture_byron_wallet "icarus"
@target_id_rnd = create_shelley_wallet
@target_id_ic = create_shelley_wallet
@target_id_rnd_assets = create_shelley_wallet
@target_id_ic_assets = create_shelley_wallet
@target_id_rnd = create_shelley_wallet("Target tx wallet")
@target_id_ic = create_shelley_wallet("Target tx wallet")
@target_id_rnd_assets = create_shelley_wallet("Target asset tx wallet")
@target_id_ic_assets = create_shelley_wallet("Target asset tx wallet")

@nighly_byron_wallets = [ @wid_rnd, @wid_ic ]
@nightly_shelley_wallets = [
Expand All @@ -37,7 +37,7 @@


# @wid = "b1fb863243a9ae451bc4e2e662f60ff217b126e2"
# @target_id_assets = "1c45611db52f07d88981db067d60f895ac34f349"
# @target_id_pools = "4eff7771b9975e0731e2c5eb9695fece9067ee92"
end

after(:all) do
Expand All @@ -47,7 +47,7 @@
BYRON.wallets.delete wid
end
@nightly_shelley_wallets.each do |wid|
BYRON.wallets.delete wid
SHELLEY.wallets.delete wid
end
end

Expand Down Expand Up @@ -375,8 +375,8 @@
expect(quit.code).to eq 202

quit_tx_id = quit['id']
eventually "Checking if join tx id (#{quit_tx_id}) is in_ledger" do
tx = SHELLEY.transactions.get(@wid, quit_tx_id)
eventually "Checking if quit tx id (#{quit_tx_id}) is in_ledger" do
tx = SHELLEY.transactions.get(@target_id_pools, quit_tx_id)
tx['status'] == "in_ledger"
end
end
Expand Down

0 comments on commit d1196b3

Please sign in to comment.