Skip to content

Commit

Permalink
chore: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Meshiest committed May 25, 2024
1 parent 171908a commit f633b0e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions crates/snops/src/cannon/source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,8 @@ impl ComputeTarget {
"id": 1,
"method": "generateTransaction",
"params": {
"authorization": serde_json::to_string(&auth["authorization"]).map_err(|e| SourceError::Json("auth[authorize]", e))?,
"fee": serde_json::to_string(&auth["fee"]).map_err(|e| SourceError::Json("auth[fee]", e))?,
"authorization": serde_json::to_string(&auth).map_err(|e| SourceError::Json("authorize tx", e))?,
"fee": serde_json::to_string(&fee_auth).map_err(|e| SourceError::Json("authorize fee", e))?,
"url": query_path,
"broadcast": true,
}
Expand Down
1 change: 1 addition & 0 deletions crates/snops/src/persist/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ mod tests {
PersistStorageFormatHeader::LATEST_HEADER.to_byte_vec()?,
PersistStorage::LATEST_HEADER.version.to_byte_vec()?,
RetentionPolicy::LATEST_HEADER.to_byte_vec()?,
NetworkId::LATEST_HEADER.to_byte_vec()?,
]
.concat()
);
Expand Down
7 changes: 3 additions & 4 deletions crates/snops/src/schema/timeline_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,15 @@ fn test_timeline_config_serde() {
fn test_timeline_execute() {
let yaml = r#"
execute:
private-key: committee.0.private
cannon: foo
program: credits.aleo
private-key: PRIVATE KEY
function: transfer_public
target: validator/1
inputs:
- 0u64
- committee.1.public
- ADDRESS
priority-fee: 13
fee-record: "fee_record_json"
duration: 1m
"#;
assert!(serde_yaml::from_str::<TimelineEvent>(yaml).is_ok());

Expand Down

0 comments on commit f633b0e

Please sign in to comment.