Skip to content

Commit a8be048

Browse files
committed
fix: fix failing unit test
1 parent 40ecd03 commit a8be048

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

stackslib/src/net/api/tests/liststackerdbreplicas.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,10 @@ fn test_try_make_response() {
111111
Some(1)
112112
);
113113

114-
let mut resp = response.decode_stackerdb_replicas().unwrap();
115-
assert_eq!(resp.len(), 1);
116-
let naddr = resp.pop().unwrap();
114+
let resp = response.decode_stackerdb_replicas().unwrap();
115+
assert_eq!(resp.len(), 2);
116+
117+
let naddr = resp.last().clone().unwrap();
117118
assert_eq!(naddr.addrbytes, PeerAddress::from_ipv4(127, 0, 0, 1));
118119
assert_eq!(naddr.port, 0);
119120
assert_eq!(

0 commit comments

Comments
 (0)