Pharo test defects

Spotter: testOpenSpotterRefreshesPreviewOnce fails at times

State
Open: no fix
Defect in
the Pharo image or the test (not proven)
Tests
1
Fix
none
Upstream repository
pharo-spec/NewTools

Summary

Failed in 1 of 4 sweeps of build-nojit (Pharo 14) and in 1 of 4 sweeps before that; stock Cog fails it too. It passes in the 6 saved sweeps of 2026-11-17. No fix exists. The rule of the project counts a test that fails at times as a test that fails.

Test

"Run in a Playground of a Pharo 14 image (Do it and print each line)."
((StSpotterTest selector: #testOpenSpotterRefreshesPreviewOnce) run) printString.
StSpotterTest>>testOpenSpotterRefreshesPreviewOnce
testOpenSpotterRefreshesPreviewOnce

	| count |
	"I need to skip it because this CI seems to not run it properly"
	self skipOnPharoCITestingEnvironment.

	count := 0.
	spotter previewContainer whenChildrenAddedDo: [ :ann | 
		count := count + 1 ].

	spotter open.
	spotter updateSearch: 'Obj'.
	self waitUntilEnded: spotter model.
	20 timesRepeat: [ self waitUntilUIRedrawed ].
	spotter window close.

	self assert: count equals: 1

Fix

None yet.

State of 2026-11-20. Made from the test records of the iospharo project (a second Pharo VM). The fixes are proposals for review.