Camera VTS: Close the session at the end of stream configuration validation

Not calling mSession->close means that there will be multiple concurrent
sessions open, which may not be supported by the device.

Bug: 280559094
Test: Ran on cuttlefish
Change-Id: Ie622fabd4d0be2f8442e90d1c781bbf905172270
This commit is contained in:
Austin Borger
2023-05-04 11:17:26 -07:00
parent 85da71a9b5
commit 8e9ac0249a

View File

@@ -3081,7 +3081,11 @@ TEST_P(CameraAidlTest, validateStreamConfigurations) {
ASSERT_EQ(blobMinDurations.size(), blobStallDurations.size());
}
// Validate other aspects of stream configuration metadata...
// TODO (b/280887191): Validate other aspects of stream configuration metadata...
ndk::ScopedAStatus ret = mSession->close();
mSession = nullptr;
ASSERT_TRUE(ret.isOk());
}
}