Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
pause125 committed Aug 4, 2024
1 parent efad449 commit 01e6c6a
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 45 deletions.
2 changes: 1 addition & 1 deletion crates/testsuite/features/bitcoin.feature
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Feature: Rooch Bitcoin tests
Then sleep: "10" # wait rooch sync and index

# Update the reorg pending block count
Then cmd: "move run --function 0x4::pending_block::update_reorg_block_count_for_local --args u64:1"
Then cmd: "move run --function 0x4::pending_block::update_reorg_block_count_for_local --args u64:1 --json"
Then assert: "{{$.move[-1].execution_info.status.type}} == executed"

Then cmd: "account list --json"
Expand Down
12 changes: 6 additions & 6 deletions crates/testsuite/features/bitseed.feature
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Feature: Rooch CLI bitseed tests
Then sleep: "10"

# Sync bitseed
Then cmd: "move run --function default::bitseed_runner::run"
Then cmd: "move run --function default::bitseed_runner::run --json"
Then assert: "{{$.move[-1].execution_info.status.type}} == executed"

# Check mint generator validity
Expand All @@ -56,7 +56,7 @@ Feature: Rooch CLI bitseed tests
Then sleep: "10"

# Sync bitseed
Then cmd: "move run --function default::bitseed_runner::run"
Then cmd: "move run --function default::bitseed_runner::run --json"
Then assert: "{{$.move[-1].execution_info.status.type}} == executed"

# Check deploy validity
Expand All @@ -74,7 +74,7 @@ Feature: Rooch CLI bitseed tests
Then sleep: "10"

# Sync bitseed
Then cmd: "move run --function default::bitseed_runner::run"
Then cmd: "move run --function default::bitseed_runner::run --json"
Then assert: "{{$.move[-1].execution_info.status.type}} == executed"

# Check mint bits validity
Expand Down Expand Up @@ -114,7 +114,7 @@ Feature: Rooch CLI bitseed tests
Then assert: "{{$.move[-1].execution_info.status.type}} == executed"

# Sync bitseed
Then cmd: "move run --function default::bitseed_runner::run"
Then cmd: "move run --function default::bitseed_runner::run --json"
Then assert: "{{$.move[-1].execution_info.status.type}} == executed"

# deploy
Expand All @@ -127,7 +127,7 @@ Feature: Rooch CLI bitseed tests
Then sleep: "10"

# Sync bitseed
Then cmd: "move run --function default::bitseed_runner::run"
Then cmd: "move run --function default::bitseed_runner::run --json"
Then assert: "{{$.move[-1].execution_info.status.type}} == executed"

# Check deploy validity
Expand All @@ -136,7 +136,7 @@ Feature: Rooch CLI bitseed tests
Then assert: "{{$.move[-1].return_values[0].decoded_value.value.vec[0].value.is_valid}} == true"

# mint on rooch
Then cmd: "move run --function 0xa::mint_get_factory::mint --args string:bitseed --args string:test"
Then cmd: "move run --function 0xa::mint_get_factory::mint --args string:bitseed --args string:test --json"
Then assert: "{{$.move[-1].execution_info.status.type}} == executed"

Then cmd: "object -t 0xa::bitseed::Bitseed -o {{$.account[-1].default.address}}"
Expand Down
Loading

0 comments on commit 01e6c6a

Please sign in to comment.