Fix bug in statsd_test

Test was calling write instead of release

Test: atest statsd_test
Bug: 155438557
Change-Id: I13fc7ed8fad936e9f21d07dd0cd75c641153fead
This commit is contained in:
Tej Singh
2020-05-14 20:08:17 -07:00
parent 1ecd4528fb
commit 1c2db28d33

View File

@@ -1339,7 +1339,7 @@ Status FakeSubsystemSleepCallback::onPullAtom(int atomTag,
// stats_event.h/c uses a vector as opposed to a buffer.
p.buffer.assign(buffer, buffer + size);
parcels.push_back(std::move(p));
AStatsEvent_write(event);
AStatsEvent_release(event);
}
resultReceiver->pullFinished(atomTag, /*success=*/true, parcels);
return Status::ok();