Skip to content

Commit 8768b1b

Browse files
committed
Fixup test comments
1 parent 475ad78 commit 8768b1b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/rest.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ fn test_rest() -> Result<()> {
204204
let assetid = issuance["asset"].as_str().expect("asset id");
205205
let issuance_txid = issuance["txid"].as_str().expect("issuance txid");
206206

207-
// Test GET /tx/:txid for issuance tx
207+
// Test GET /asset/:assetid
208208
let asset = get_json(&format!("/asset/{}", assetid))?;
209209
let stats = &asset["chain_stats"];
210210
assert_eq!(asset["asset_id"].as_str(), Some(assetid));
@@ -215,7 +215,7 @@ fn test_rest() -> Result<()> {
215215
assert_eq!(stats["has_blinded_issuances"].as_bool(), Some(true));
216216
assert_eq!(stats["issued_amount"].as_u64(), Some(0));
217217

218-
// Test GET /asset/:assetid
218+
// Test GET /tx/:txid for issuance tx
219219
let issuance_tx = get_json(&format!("/tx/{}", issuance_txid))?;
220220
let issuance_in_index = asset["issuance_txin"]["vin"].as_u64().unwrap();
221221
let issuance_in = &issuance_tx["vin"][issuance_in_index as usize];
@@ -236,13 +236,13 @@ fn test_rest() -> Result<()> {
236236
let assetid = issuance["asset"].as_str().expect("asset id");
237237
let issuance_txid = issuance["txid"].as_str().expect("issuance txid");
238238

239-
// Test GET /tx/:txid for issuance tx
239+
// Test GET /asset/:assetid
240240
let asset = get_json(&format!("/asset/{}", assetid))?;
241241
let stats = &asset["chain_stats"];
242242
assert_eq!(stats["has_blinded_issuances"].as_bool(), Some(false));
243243
assert_eq!(stats["issued_amount"].as_u64(), Some(150000000));
244244

245-
// Test GET /asset/:assetid
245+
// Test GET /tx/:txid for issuance tx
246246
let issuance_tx = get_json(&format!("/tx/{}", issuance_txid))?;
247247
let issuance_in_index = asset["issuance_txin"]["vin"].as_u64().unwrap();
248248
let issuance_in = &issuance_tx["vin"][issuance_in_index as usize];

0 commit comments

Comments
 (0)