diff --git a/mcrouter/test/test_async_files_attr.py b/mcrouter/test/test_async_files_attr.py index 033766215..28afe818b 100644 --- a/mcrouter/test/test_async_files_attr.py +++ b/mcrouter/test/test_async_files_attr.py @@ -5,11 +5,11 @@ # LICENSE file in the root directory of this source tree. +import importlib.resources import json import os import time -from libfb.py import parutil from mcrouter.test.McrouterTestCase import McrouterTestCase @@ -54,7 +54,7 @@ def test_stats_no_requests(self): def test_async_files_attr(self): mcrouter = self.add_mcrouter(self.config, extra_args=self.extra_args) - binary = parutil.get_file_path("mcrouter/client_binary") + binary = str(importlib.resources.files("mcrouter").joinpath("client_binary")) port = str(mcrouter.getport()) args = '\'{"key":"abcd", "attributes":{"a1":1000, "a2":2000}}\'' command = binary + " -p " + port + " delete " + args