Skip to content

System.Windows.Forms.Tests.ListControlTests.ListControl_FormatInfo_Set_CallsRefreshItems fails intermittently #8046

@JeremyKuhne

Description

@JeremyKuhne

Test

System.Windows.Forms.Tests.ListControlTests.ListControl_FormatInfo_Set_CallsRefreshItems

Issue description

System.Windows.Forms.Tests.ListControlTests.ListControl_FormatInfo_Set_CallsRefreshItems has been failing periodically, in the instance I investigated this was the error:

Error message
Assert.Same() Failure\r\nExpected: en-US\r\nActual:   en-US

Stack trace
   at System.Windows.Forms.Tests.ListControlTests.ListControl_FormatInfo_Set_CallsRefreshItems() in /_/src/System.Windows.Forms/tests/UnitTests/System/Windows/Forms/ListControlTests.cs:line 1406
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)

Same doesn't seem right, even if we think it doesn't change it, from a consumption standpoint it shouldn't matter. Should probably change to Equals.

Metadata

Metadata

Labels

test-bugProblem in test source code (most likely)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions