commit | 088276b2909799751129e2f4a3b00adb1dbaa32b | [log] [tgz] |
---|---|---|
author | Patrick Rohr <prohr@google.com> | Wed May 15 11:36:07 2024 -0700 |
committer | Patrick Rohr <prohr@google.com> | Wed May 15 14:05:29 2024 -0700 |
tree | 28f6d9adbc304109744b605f2e1488f4c1bdb1c2 | |
parent | ddf2f2cbda9be180a8a4fcac6a9a3cda6526734b [diff] |
Drain tun interfaces before every test The tun interfaces were not drained after being set up, meaning that a test that expects read() to succeed might do so due to the presence of the initial MLD, NS, or RS packet after bringing up the interface. Additionally, the tun interfaces in this test are static, so draining them in SetUp() ensures there are no packets leftover from a previous test. Test: atest netd_integration_test Change-Id: I7585b6dfd35e1964c28765f7624e4955b5f5cfb4