Use DispatcherTaskScheduler instead of TaskScheduler.FromCurrentSynchronizationContext #17825
Build #20241224.4 had test failures
Details
- Failed: 18 (0.23%)
- Passed: 7,717 (98.81%)
- Other: 75 (0.96%)
- Total: 7,810
Annotations
Check failure on line 1367 in Build log
azure-pipelines / AvaloniaUI.Avalonia
Build log #L1367
[xUnit.net 00:00:04.96] Avalonia.Base.UnitTests.Data.Core.BindingExpressionTests+Reflection.Should_Get_Simple_Task_Value_With_Data_DataValidation_Enabled [FAIL]
Check failure on line 1390 in Build log
azure-pipelines / AvaloniaUI.Avalonia
Build log #L1390
[xUnit.net 00:00:04.98] Avalonia.Base.UnitTests.Data.Core.BindingExpressionTests+Reflection.Should_Update_Data_Validation_On_Task_Exception [FAIL]
Check failure on line 1402 in Build log
azure-pipelines / AvaloniaUI.Avalonia
Build log #L1402
[xUnit.net 00:00:05.06] Avalonia.Base.UnitTests.Data.Core.BindingExpressionTests+Reflection.Should_Get_Property_Value_From_Task [FAIL]
Check failure on line 1427 in Build log
azure-pipelines / AvaloniaUI.Avalonia
Build log #L1427
[xUnit.net 00:00:08.62] Avalonia.Base.UnitTests.Data.Core.BindingExpressionTests+Compiled.Should_Update_Data_Validation_On_Task_Exception [FAIL]
azure-pipelines / AvaloniaUI.Avalonia
Avalonia.Base.UnitTests.Data.Core.BindingExpressionTests+Compiled.Should_Get_Simple_Task_Value_With_Data_DataValidation_Enabled
Assert.Equal() Failure: Strings differ
Expected: "foo"
Actual: null
Raw output
at Avalonia.Base.UnitTests.Data.Core.BindingExpressionTests.Should_Get_Simple_Task_Value_With_Data_DataValidation_Enabled() in /home/vsts/work/1/s/tests/Avalonia.Base.UnitTests/Data/Core/BindingExpressionTests.Task.cs:line 117
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
azure-pipelines / AvaloniaUI.Avalonia
Avalonia.Base.UnitTests.Data.Core.BindingExpressionTests+Compiled.Should_Update_Data_Validation_On_Task_Exception
Assert.True() Failure
Expected: True
Actual: False
Raw output
at Avalonia.Base.UnitTests.Data.Core.BindingExpressionTests.AssertBindingError(TargetClass target, AvaloniaProperty property, Exception expectedException, BindingErrorType errorType) in /home/vsts/work/1/s/tests/Avalonia.Base.UnitTests/Data/Core/BindingExpressionTests.DataValidation.cs:line 425
at Avalonia.Base.UnitTests.Data.Core.BindingExpressionTests.Should_Update_Data_Validation_On_Task_Exception() in /home/vsts/work/1/s/tests/Avalonia.Base.UnitTests/Data/Core/BindingExpressionTests.Task.cs:line 73
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
azure-pipelines / AvaloniaUI.Avalonia
Avalonia.Base.UnitTests.Data.Core.BindingExpressionTests+Reflection.Should_Get_Simple_Task_Value_With_Data_DataValidation_Enabled
System.AggregateException : One or more errors occurred. (Assert.Equal() Failure: Strings differ
Expected: "foo"
Actual: null) (The test left 1 unprocessed dispatcher job:
- Avalonia.Threading.DispatcherTaskScheduler.QueueTaskCallback [Default]
Consider using ScopedTestBase or UnitTestApplication.Start().)
---- Assert.Equal() Failure: Strings differ
Expected: "foo"
Actual: null
---- The test left 1 unprocessed dispatcher job:
- Avalonia.Threading.DispatcherTaskScheduler.QueueTaskCallback [Default]
Consider using ScopedTestBase or UnitTestApplication.Start().
Raw output
----- Inner Stack Trace #1 (Xunit.Sdk.EqualException) -----
at Avalonia.Base.UnitTests.Data.Core.BindingExpressionTests.Should_Get_Simple_Task_Value_With_Data_DataValidation_Enabled() in /home/vsts/work/1/s/tests/Avalonia.Base.UnitTests/Data/Core/BindingExpressionTests.Task.cs:line 117
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
----- Inner Stack Trace #2 (Xunit.Sdk.FailException) -----
at Avalonia.UnitTests.VerifyEmptyDispatcherAfterTestAttribute.After(MethodInfo methodUnderTest) in /home/vsts/work/1/s/tests/Avalonia.UnitTests/VerifyEmptyDispatcherAfterTestAttribute.cs:line 29
azure-pipelines / AvaloniaUI.Avalonia
Avalonia.Base.UnitTests.Data.Core.BindingExpressionTests+Reflection.Should_Update_Data_Validation_On_Task_Exception
Assert.True() Failure
Expected: True
Actual: False
Raw output
at Avalonia.Base.UnitTests.Data.Core.BindingExpressionTests.AssertBindingError(TargetClass target, AvaloniaProperty property, Exception expectedException, BindingErrorType errorType) in /home/vsts/work/1/s/tests/Avalonia.Base.UnitTests/Data/Core/BindingExpressionTests.DataValidation.cs:line 425
at Avalonia.Base.UnitTests.Data.Core.BindingExpressionTests.Should_Update_Data_Validation_On_Task_Exception() in /home/vsts/work/1/s/tests/Avalonia.Base.UnitTests/Data/Core/BindingExpressionTests.Task.cs:line 73
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)