Comment #2 on issue 4338 by
[hidden email]:
testAllDictionariesAreHealthy sometimes fails...
http://code.google.com/p/pharo/issues/detail?id=4338Hi
There is a 'bad' Dictionary left after DictionaryTest>>testHealthyWorks is
executed.
I'm guessing this only happens sometimes because of GC.
Method should clean up, maybe as below?
testHealthyWorks
"we use associations as keys on purpose, because they changing
hash depending on the key"
| a1 a2 dict |
dict := Dictionary new.
[a1 := 1 -> 2.
a2 := 2 -> 2.
dict at: a1 put: 2;
at: a2 put: 3.
self assert: dict isHealthy.
a1 key: 0.
a2 key: 0.
self assert: dict isHealthy not]
ensure: [dict removeAll]
_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker