Skip to content

Commit 640cb1d

Browse files
committed
fix: measure pool_size_before assignment in double_release_does_not_corrupt_pool test
1 parent 7fd4d4e commit 640cb1d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/src/state/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,9 +293,9 @@ fn assign_ip_pair_release_and_reassign_cycle() {
293293
#[test]
294294
fn double_release_does_not_corrupt_pool() {
295295
let state = AppState::new("10.0.0.0/30").unwrap();
296-
let (v4, v6) = state.assign_ip_pair().unwrap();
297296
let pool_size_before = state.free_ips.lock().unwrap().len();
298297

298+
let (v4, v6) = state.assign_ip_pair().unwrap();
299299
let (tx, _rx) = mpsc::channel::<bytes::Bytes>(16);
300300
state.register_client(v4, v6, tx);
301301
state.release_ips(v4, v6);

0 commit comments

Comments
 (0)