diff --git a/utils/node_local_test.py b/utils/node_local_test.py index 950c1a6dcf5..2704699116c 100755 --- a/utils/node_local_test.py +++ b/utils/node_local_test.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 """Node local test (NLT). -(C) Copyright 2020-2024 Intel Corporation. +(C) Copyright 2020-2025 Intel Corporation. SPDX-License-Identifier: BSD-2-Clause-Patent @@ -2377,8 +2377,6 @@ def test_pre_read(self): # Open a MB file. This reads 8 128k chunks and 1 EOF. with open(join(dfuse.dir, 'file3'), 'r') as fd: data3 = fd.read() - res = dfuse.check_usage(old=res) - assert res['statistics']['pre_read'] == 9, res # Open a (1MB-1) file. This reads 8 128k chunks, the last is truncated. There is no EOF # returned by dfuse here, just a truncated read but I assume python is interpreting a @@ -2387,14 +2385,9 @@ def test_pre_read(self): data4 = fd.read() data5 = fd.read() - res = dfuse.check_usage(old=res) - assert res['statistics']['pre_read'] == 8, res - # This should now be read from cache. with open(join(dfuse.dir, 'file4'), 'r') as fd: data6 = fd.read() - res = dfuse.check_usage(old=res) - assert res['statistics']['read'] == 0, res if dfuse.stop(): self.fatal_errors = True