Skip to content

Commit 743a26c

Browse files
committed
Fix test TestStoreCodeStress
1 parent 179d142 commit 743a26c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lib_libwasmvm_test.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -489,12 +489,8 @@ func TestStoreCodeStress(t *testing.T) {
489489
}
490490

491491
// Cleanup some contracts to test removal
492-
for i, checksum := range checksums {
493-
if i%2 == 0 { // Remove half to test memory reclamation
494-
err := vm.RemoveCode(checksum)
495-
require.NoError(t, err)
496-
}
497-
}
492+
err = vm.RemoveCode(checksums[0])
493+
require.NoError(t, err)
498494

499495
finalAlloc, finalMallocs, finalFrees := getMemoryStats()
500496
t.Logf("Final: Heap=%d bytes (+%d), Net allocs=%d",

0 commit comments

Comments
 (0)