Skip to content

Flaky Unit Test: TestControllerGameServerCount #4389

@markmandel

Description

@markmandel

Haven't seen this much, but it showed up today.

{"message":"unable to calculate 'Ready' state duration of 's2v9llhh4v1' GameServer","severity":"warning","source":"*metrics.Controller","time":"2025-12-17T23:54:54.815475533Z"}
--- FAIL: TestControllerGameServerCount (2.11s)
    controller_test.go:88: 
        	Error Trace:	/go/src/agones.dev/agones/pkg/metrics/controller_test.go:88
        	            				/go/src/agones.dev/agones/pkg/metrics/controller_test.go:289
        	Error:      	Not equal: 
        	            	expected: 2
        	            	actual  : 1
        	Test:       	TestControllerGameServerCount
        	Messages:   	metric: gameservers_count, tags: [{none true} {default true} {PortAllocation true}], values don't match; got: 1, want: 2
{"message":"Wait for cache sync","severity":"info","time":"2025-12-17T23:54:54.818099822Z"}

Metadata

Metadata

Labels

area/testsUnit tests, e2e tests, anything to make sure things don't breakgood first issueThese are great first issues. If you are looking for a place to start, start here!help wantedWe would love help on these issues. Please come help us!kind/bugThese are bugs.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions