Skip to content

Commit 7f0f095

Browse files
Add clear_cache() calls in 'test/fields.uts' (secdev#4705)
1 parent 4583af8 commit 7f0f095

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/fields.uts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,7 @@ assert b[TestPkt:2].f1 == 100
616616
assert Raw in b and b[Raw].load == b"123456"
617617

618618
a.plist.append(TestPkt(f1=200))
619+
a.clear_cache() # List fields, if modified, do not automatically invalidate the cache. We currently have to do it explicitly.
619620
b = TestPLF2(raw(a))
620621
b.show()
621622
assert b.len1 == 5 and b.len2 == 5
@@ -713,6 +714,7 @@ assert b[TestPkt:2].f1 == 100
713714
assert Raw in b and b[Raw].load == b"123456"
714715

715716
a.plist.append(TestPkt(f1=200))
717+
a.clear_cache() # List fields, if modified, do not automatically invalidate the cache. We currently have to do it explicitly.
716718
b = TestPLF2(raw(a))
717719
b.show()
718720
assert b.len1 == 5 and b.len2 == 5

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy