Skip to content

Commit

Permalink
Fix testharness (#4345)
Browse files Browse the repository at this point in the history
* fix tests

* ignore some tests

1. Trait MoveTestAdapter need to be refactored
2. Token parsing function is not working properly

* update nextest.sh
  • Loading branch information
simonjiao authored Dec 13, 2024
1 parent 0924b95 commit b4b9eb3
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion scripts/nextest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ cargo nextest -V >/dev/null 2>&1 || cargo install cargo-nextest --version "0.9.5
# --retries 2, a correct test case usually takes no more than 3 tries to pass
# --build-jobs 8, a little (~20s) faster than 5 or 10 build jobs
cargo nextest run --workspace \
--exclude starcoin-transactional-test-harness \
--exclude starcoin-consensus \
--retries 2 --build-jobs 8 --test-threads 12 --no-fail-fast --failure-output immediate-final

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module creator::test {

//# run --signers creator
script {
use StarcoinFramework::Signer;
use std::signer;
use creator::test;

fun main(s: signer) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

//# run --signers creator --args {{$.call-api[0].header.number}}u64 --args "{{$.call-api[0].header.block_hash}}" --args "{{$.call-api[1]}}"
script{
use StarcoinFramework::Vector;
use std::vector;
fun main(_sender: signer, block_number: u64, block_hash: vector<u8>, state_proof: vector<u8>){
assert!(block_number == 1, 1000);
assert!(vector::length(&block_hash) == 32, 1001);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

//# run --signers creator --args {{$.call-api[0].header.number}}u64 --args "{{$.call-api[0].header.block_hash}}"
script{
use StarcoinFramework::Vector;
use std::vector;
fun main(_sender: signer, block_number: u64, block_hash: vector<u8>){
assert!(block_number == 1, 1000);
assert!(vector::length(&block_hash) == 32, 1001);
Expand Down

0 comments on commit b4b9eb3

Please sign in to comment.