Merge "fix BpfMapTest"

This commit is contained in:
Maciej Żenczykowski
2022-05-20 07:44:13 +00:00
committed by Gerrit Code Review

View File

@@ -352,15 +352,6 @@ public final class BpfMapTest {
assertFalse(mTestMap.isEmpty()); assertFalse(mTestMap.isEmpty());
mTestMap.clear(); mTestMap.clear();
assertTrue(mTestMap.isEmpty()); assertTrue(mTestMap.isEmpty());
// Clearing an already-closed map throws.
mTestMap.close();
try {
mTestMap.clear();
fail("clearing already-closed map should throw");
} catch (IllegalStateException expected) {
// ParcelFileDescriptor.getFd throws IllegalStateException: Already closed.
}
} }
@Test @Test