Skip to content

Commit

Permalink
use auto-generated framework for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
simonjiao committed Dec 26, 2024
1 parent b12b0af commit d3d4a21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vm/starcoin-transactional-test-harness/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1504,7 +1504,7 @@ pub fn print_help(task_name: Option<String>) -> Result<()> {
//TODO(simon): construct PackagePaths properly
pub static G_PRECOMPILED_STARCOIN_FRAMEWORK: Lazy<(FullyCompiledProgram, Vec<PackagePaths>)> =
Lazy::new(|| {
let sources = starcoin_framework::testnet_release_bundle()
let sources = starcoin_cached_packages::head_release_bundle()
.files()
.unwrap();
let package_paths = vec![PackagePaths {
Expand Down
3 changes: 2 additions & 1 deletion vm/vm-runtime/tests/test_native_functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ use starcoin_gas_schedule::LATEST_GAS_FEATURE_VERSION;
use starcoin_vm_types::access::ModuleAccess;
use starcoin_vm_types::normalized::Function;
use std::collections::{HashMap, HashSet};
use stdlib::StdLibOptions;

#[test]
pub fn test_native_function_matches() -> Result<()> {
let modules = starcoin_framework::testnet_release_bundle().compiled_modules();
let modules = stdlib::stdlib_compiled_modules(StdLibOptions::Fresh);
let runtime_metadata = modules
.iter()
.filter_map(|m| {
Expand Down

0 comments on commit d3d4a21

Please sign in to comment.