node: custom agent test
This commit is contained in:
@@ -88,7 +88,10 @@ fn peer_handshake() {
|
||||
)
|
||||
.unwrap();
|
||||
|
||||
assert!(peer.info.user_agent.ends_with(env!("CARGO_PKG_VERSION")));
|
||||
assert!(peer
|
||||
.info
|
||||
.user_agent
|
||||
.ends_with(format!("{}+", env!("CARGO_PKG_VERSION")).as_str()));
|
||||
|
||||
thread::sleep(time::Duration::from_secs(1));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user