aboutsummaryrefslogtreecommitdiffstats
path: root/vbench/src/tests/dropped_tagger/dropped_tagger_test.cpp
blob: f1ea5dfee112f75ce5eba820857a249cc7d9e6c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/vespalib/testkit/testapp.h>
#include <vbench/test/all.h>

using namespace vbench;

TEST_FF("dropped tagger", RequestReceptor(), DroppedTagger(f1)) {
    Request::UP req(new Request());
    EXPECT_EQUAL(Request::STATUS_OK, req->status());
    f2.handle(std::move(req));
    ASSERT_TRUE(f1.request.get() != 0);
    EXPECT_EQUAL(Request::STATUS_DROPPED, f1.request->status());
}

TEST_MAIN() { TEST_RUN_ALL(); }