Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable a flaky test for SysFs #2023

Merged
merged 3 commits into from Jan 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/System.Device.Gpio.Tests/GpioControllerTestBase.cs
Expand Up @@ -230,9 +230,17 @@ void Callback(object sender, PinValueChangedEventArgs pinValueChangedEventArgs)
[Fact]
public void AddCallbackFallingEdgeNotDetectedTest()
{
var driver = GetTestDriver();
if (driver is SysFsDriver)
{
// This test is unreliable (flaky) with SysFs.
pgrawehr marked this conversation as resolved.
Show resolved Hide resolved
// See https://github.com/dotnet/iot/issues/629 and possibly https://github.com/dotnet/iot/issues/1581
return;
}

bool wasCalled = false;
AutoResetEvent ev = new AutoResetEvent(false);
using (GpioController controller = new GpioController(GetTestNumberingScheme(), GetTestDriver()))
using (GpioController controller = new GpioController(GetTestNumberingScheme(), driver))
{
controller.OpenPin(InputPin, PinMode.Input);
controller.OpenPin(OutputPin, PinMode.Output);
Expand Down