aboutsummaryrefslogtreecommitdiffstats
path: root/jrt_test/src/tests/rpc-error/test-errors.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'jrt_test/src/tests/rpc-error/test-errors.cpp')
-rw-r--r--jrt_test/src/tests/rpc-error/test-errors.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/jrt_test/src/tests/rpc-error/test-errors.cpp b/jrt_test/src/tests/rpc-error/test-errors.cpp
index 22e1007a517..c30af8ea579 100644
--- a/jrt_test/src/tests/rpc-error/test-errors.cpp
+++ b/jrt_test/src/tests/rpc-error/test-errors.cpp
@@ -5,22 +5,20 @@
class TestErrors : public vespalib::TestApp
{
private:
+ fnet::frt::StandaloneFRT server;
FRT_Supervisor *client;
FRT_Target *target;
public:
void init(const char *spec) {
- client = new FRT_Supervisor;
+ client = & server.supervisor();
target = client->GetTarget(spec);
- client->Start();
}
void fini() {
- target->SubRef();
- target = NULL;
- client->ShutDown(true);
- delete client;
- client = NULL;
+ target->SubRef();
+ target = nullptr;
+ client = nullptr;
}
void testNoError();