mirror of
https://github.com/threefoldtech/mycelium.git
synced 2026-10-22 21:51:19 +00:00
1 parent
0eed34bc57
commit
e35b07b4e0
1 file changed
+12
@@ -364,6 +364,9 @@ mod tests {
|
||||
|
||||
let source_key = SourceKey::new(sn, rid);
|
||||
|
||||
let secret_key_2 = SecretKey::new();
|
||||
let ss = secret_key_2.shared_secret(&pk);
|
||||
|
||||
let mut st = SourceTable::new();
|
||||
st.insert(
|
||||
source_key,
|
||||
@@ -392,6 +395,7 @@ mod tests {
|
||||
SeqNo::from(1),
|
||||
true,
|
||||
tokio::time::Instant::now() + Duration::from_secs(60),
|
||||
ss,
|
||||
);
|
||||
|
||||
assert!(st.route_feasible(&re));
|
||||
@@ -407,6 +411,9 @@ mod tests {
|
||||
.expect("Valid subnet in test case");
|
||||
let rid = RouterId::new(pk);
|
||||
|
||||
let secret_key_2 = SecretKey::new();
|
||||
let ss = secret_key_2.shared_secret(&pk);
|
||||
|
||||
let source_key = SourceKey::new(sn, rid);
|
||||
|
||||
let mut st = SourceTable::new();
|
||||
@@ -437,6 +444,7 @@ mod tests {
|
||||
SeqNo::from(1),
|
||||
true,
|
||||
tokio::time::Instant::now() + Duration::from_secs(60),
|
||||
ss,
|
||||
);
|
||||
|
||||
assert!(!st.route_feasible(&re));
|
||||
@@ -452,6 +460,9 @@ mod tests {
|
||||
.expect("Valid subnet in test case");
|
||||
let rid = RouterId::new(pk);
|
||||
|
||||
let secret_key_2 = SecretKey::new();
|
||||
let ss = secret_key_2.shared_secret(&pk);
|
||||
|
||||
let source_key = SourceKey::new(sn, rid);
|
||||
|
||||
let mut st = SourceTable::new();
|
||||
@@ -482,6 +493,7 @@ mod tests {
|
||||
SeqNo::from(1),
|
||||
true,
|
||||
tokio::time::Instant::now() + Duration::from_secs(60),
|
||||
ss,
|
||||
);
|
||||
|
||||
assert!(!st.route_feasible(&re));
|
||||
|
||||
Reference in new issue
Block a user