From 96e5c44f73e78b3124662102370895b3ffc43b6f Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Wed, 26 Feb 2020 23:45:24 -0800 Subject: [PATCH] rename localhost -> isolated --- src/config.cpp | 2 +- src/pvxs/server.h | 2 +- test/testget.cpp | 4 ++-- test/testinfo.cpp | 4 ++-- test/testput.cpp | 6 +++--- test/testrpc.cpp | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/config.cpp b/src/config.cpp index bd4a669..79face2 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -163,7 +163,7 @@ Config Config::from_env() return ret; } -Config Config::localhost() +Config Config::isolated() { Config ret; diff --git a/src/pvxs/server.h b/src/pvxs/server.h index 2364b8d..e890c64 100644 --- a/src/pvxs/server.h +++ b/src/pvxs/server.h @@ -136,7 +136,7 @@ struct PVXS_API Config { //! Configuration limited to the local loopback interface on a randomly choosen port. //! Suitable for use in self-contained unit-tests. - static Config localhost(); + static Config isolated(); /** Apply rules to translate current requested configuration * into one which can actually be loaded based on current host network configuration. diff --git a/test/testget.cpp b/test/testget.cpp index c3e2c4d..d0baaa7 100644 --- a/test/testget.cpp +++ b/test/testget.cpp @@ -32,7 +32,7 @@ struct Tester { Tester() :initial(nt::NTScalar{TypeCode::Int32}.create()) ,mbox(server::SharedPV::buildReadonly()) - ,serv(server::Config::localhost() + ,serv(server::Config::isolated() .build() .addPV("mailbox", mbox)) ,cli(serv.clientConfig().build()) @@ -183,7 +183,7 @@ void testError(bool phase) { testShow()<<__func__<<" phase="<(phase)) .start(); diff --git a/test/testinfo.cpp b/test/testinfo.cpp index bd0c503..aa5b9de 100644 --- a/test/testinfo.cpp +++ b/test/testinfo.cpp @@ -32,7 +32,7 @@ struct Tester { Tester() :initial(nt::NTScalar{TypeCode::Int32}.create()) ,mbox(server::SharedPV::buildReadonly()) - ,serv(server::Config::localhost() + ,serv(server::Config::isolated() .build() .addPV("mailbox", mbox)) ,cli(serv.clientConfig().build()) @@ -167,7 +167,7 @@ void testError() { testShow()<<__func__; - auto serv = server::Config::localhost() + auto serv = server::Config::isolated() .build() .addSource("err", std::make_shared()) .start(); diff --git a/test/testput.cpp b/test/testput.cpp index d3738ba..4ed7098 100644 --- a/test/testput.cpp +++ b/test/testput.cpp @@ -32,7 +32,7 @@ struct Tester { Tester() :initial(nt::NTScalar{TypeCode::Int32}.create()) ,mbox(server::SharedPV::buildMailbox()) - ,serv(server::Config::localhost() + ,serv(server::Config::isolated() .build() .addPV("mailbox", mbox)) ,cli(serv.clientConfig().build()) @@ -176,7 +176,7 @@ void testRO() initial["value"] = 1; mbox.open(initial); - auto serv = server::Config::localhost() + auto serv = server::Config::isolated() .build() .addPV("mailbox", mbox) .start(); @@ -234,7 +234,7 @@ void testError() { testShow()<<__func__; - auto serv = server::Config::localhost() + auto serv = server::Config::isolated() .build() .addSource("err", std::make_shared()) .start(); diff --git a/test/testrpc.cpp b/test/testrpc.cpp index 77a6568..be79f69 100644 --- a/test/testrpc.cpp +++ b/test/testrpc.cpp @@ -35,7 +35,7 @@ struct Tester { Tester() :initial(nt::NTScalar{TypeCode::Int32}.create()) ,mbox(server::SharedPV::buildMailbox()) - ,serv(server::Config::localhost() + ,serv(server::Config::isolated() .build() .addPV("mailbox", mbox)) ,cli(serv.clientConfig().build())