Skip to content

Commit d45d62b

Browse files
committed
src/lib.rs:tests:address address_txs address_txs_chain
1 parent 53d4bbe commit d45d62b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/lib.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -233,23 +233,24 @@ mod tests {
233233
fn test_address() {
234234
// GET /api/address/:address
235235
let binding = format!("address/1wiz18xYmhRX6xStj2b9t1rwWX4GKUgpv").clone();
236-
let prices: &str = blocking(&binding).expect("test_address failed");
237-
let prices = generic_sys_call("address", "1wiz18xYmhRX6xStj2b9t1rwWX4GKUgpv");
236+
let address: &str = blocking(&binding).expect("test_address failed");
237+
let address = generic_sys_call("address", "1wiz18xYmhRX6xStj2b9t1rwWX4GKUgpv");
238238
wait("1");
239239
}
240240
#[test]
241241
fn test_address_txs() {
242242
// GET /api/address/:address/txs
243243
let binding = format!("address/1wiz18xYmhRX6xStj2b9t1rwWX4GKUgpv/txs").clone();
244-
let prices: &str = blocking(&binding).expect("REASON");
245-
let prices = generic_sys_call("address_txs", "1wiz18xYmhRX6xStj2b9t1rwWX4GKUgpv");
244+
let address_txs: &str = blocking(&binding).expect("test_address_txs failed");
245+
let address_txs = generic_sys_call("address_txs", "1wiz18xYmhRX6xStj2b9t1rwWX4GKUgpv");
246246
wait("1");
247247
}
248248
#[test]
249249
fn test_address_txs_chain() {
250250
// GET /api/address/:address/txs/chain
251251
let binding = format!("address/1wiz18xYmhRX6xStj2b9t1rwWX4GKUgpv/txs/chain").clone();
252-
let prices: &str = blocking(&binding).expect("REASON");
252+
let address_txs_chain: &str = blocking(&binding).expect("REASON");
253+
let address_txs_chain = generic_sys_call("address_txs_chain", "1wiz18xYmhRX6xStj2b9t1rwWX4GKUgpv");
253254
wait("1");
254255
}
255256
#[test]

0 commit comments

Comments
 (0)