Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberHoward committed Jul 2, 2023
1 parent 473b46e commit bc1b7ca
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions contracts/native/version-control/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,7 @@ mod test {
CONFIG
.load(&deps.storage)
.unwrap()
.allow_direct_module_registration
.allow_direct_module_registration_and_updates
)
.is_equal_to(false);
assert_that!(
Expand Down Expand Up @@ -994,7 +994,7 @@ mod test {
}

#[test]
fn updates_limit() -> VersionControlTestResult {
fn updates_fee() -> VersionControlTestResult {
let mut deps = mock_dependencies();
mock_init(deps.as_mut())?;

Expand All @@ -1005,14 +1005,12 @@ mod test {

let msg = ExecuteMsg::UpdateConfig {
allow_direct_module_registration_and_updates: None,
namespace_limit: None,
namespace_registration_fee: Some(new_fee.clone()),
};

let res = execute_as_admin(deps.as_mut(), msg);
assert_that!(&res).is_ok();

assert_that!(CONFIG.load(&deps.storage).unwrap().namespace_limit).is_equal_to(10);
assert_that!(
CONFIG
.load(&deps.storage)
Expand Down Expand Up @@ -1266,9 +1264,9 @@ mod test {
execute_as(
deps.as_mut(),
TEST_OWNER,
ExecuteMsg::ClaimNamespaces {
ExecuteMsg::ClaimNamespace {
account_id: TEST_ACCOUNT_ID,
namespaces: vec![new_module.namespace.to_string()],
namespace: new_module.namespace.to_string(),
},
)?;

Expand Down Expand Up @@ -1306,9 +1304,9 @@ mod test {
execute_as(
deps.as_mut(),
TEST_OWNER,
ExecuteMsg::ClaimNamespaces {
ExecuteMsg::ClaimNamespace {
account_id: TEST_ACCOUNT_ID,
namespaces: vec![new_module.namespace.to_string()],
namespace: new_module.namespace.to_string(),
},
)?;

Expand Down

0 comments on commit bc1b7ca

Please sign in to comment.