Skip to content

Commit 1afe902

Browse files
committed
Fix test copy-paste error
It was testing the same case twice. Signed-off-by: Michael Warres <mpw@google.com>
1 parent 02239af commit 1afe902

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/stop_iteration_test.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,9 @@ TEST_P(TestVm, AllowOnRequestHeadersStopIteration) {
5454
auto wasm_handle = std::make_shared<WasmHandleBase>(wasm);
5555
auto plugin_handle = std::make_shared<PluginHandleBase>(wasm_handle, plugin);
5656
auto stream_context = TestContext(wasm.get(), root_context->id(), plugin_handle);
57-
stream_context.set_allow_on_request_headers_stop_iteration(true);
5857
stream_context.onCreate();
5958
EXPECT_EQ(stream_context.onRequestHeaders(/*headers=*/0, /*end_of_stream=*/false),
60-
FilterHeadersStatus::StopIteration);
59+
FilterHeadersStatus::StopAllIterationAndWatermark);
6160
stream_context.onResponseHeaders(/*headers=*/0, /*end_of_stream=*/false);
6261
stream_context.onDone();
6362
stream_context.onDelete();

0 commit comments

Comments
 (0)