composer: vts: don't clear reader errors on teardown

Fixing a bug that caused Teardown to clear the errors before
checking them

Bug: 303735490
Test: presubmit
Change-Id: Ieb02ab3015fc21bcef6624f8f45c3b84549005c2
This commit is contained in:
Ady Abraham
2024-01-03 11:45:08 -08:00
committed by Wiwit Rifa'i
parent ac6b2febe4
commit fc1e3f11ad

View File

@@ -1401,7 +1401,6 @@ class GraphicsComposerAidlCommandTest : public GraphicsComposerAidlTest {
protected:
void TearDown() override {
ASSERT_FALSE(mDisplays.empty());
const auto errors = mReader.takeErrors();
ASSERT_TRUE(mReader.takeErrors().empty());
ASSERT_TRUE(mReader.takeChangedCompositionTypes(getPrimaryDisplayId()).empty());