new(tests/engine): update socket path

Signed-off-by: Lorenzo Fontana <lo@linux.com>
This commit is contained in:
Lorenzo Fontana
2020-05-17 03:51:07 +02:00
committed by poiana
parent da9278f061
commit 2680a459ec

View File

@@ -18,13 +18,13 @@ limitations under the License.
TEST_CASE("Startswith shold match when checked string has prefix", "[utils]")
{
bool res = falco::utils::starts_with("unix:///var/run/falco/falco.sock", "unix://");
bool res = falco::utils::starts_with("unix:///var/run/falco.sock", "unix://");
REQUIRE(res);
}
TEST_CASE("Startswith shold not match when checked string does not have prefix", "[utils]")
{
bool res = falco::utils::starts_with("unix:///var/run/falco/falco.sock", "something://");
bool res = falco::utils::starts_with("unix:///var/run/falco.sock", "something://");
REQUIRE_FALSE(res);
}