Skip to content

Commit

Permalink
add missing release calls
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Schore <mike.schore@gmail.com>
  • Loading branch information
goaway committed Sep 18, 2020
1 parent 59f0cd7 commit 5499521
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ TEST_F(PlatformBridgeFilterTest, StopAndBufferOnResponseData) {
std::string expected_data[3] = {"A", "AB", "ABC"};
EXPECT_EQ(to_string(c_data), expected_data[invocations->on_response_data_calls++]);
EXPECT_FALSE(end_stream);
c_data.release(c_data.context);
return {kEnvoyFilterDataStatusStopIterationAndBuffer, envoy_nodata};
};

Expand Down Expand Up @@ -427,6 +428,7 @@ TEST_F(PlatformBridgeFilterTest, StopNoBufferOnResponseData) {
std::string expected_data[3] = {"A", "B", "C"};
EXPECT_EQ(to_string(c_data), expected_data[invocations->on_response_data_calls++]);
EXPECT_FALSE(end_stream);
c_data.release(c_data.context);
return {kEnvoyFilterDataStatusStopIterationNoBuffer, envoy_nodata};
};

Expand Down

0 comments on commit 5499521

Please sign in to comment.