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

Remove test #83

Merged
merged 1 commit into from
Jul 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions Meshtastic.Test/CommandHandlers/CommandHandlerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
[TestFixture]
[Category(TestCategories.SimulatedDeviceTests)]
[NonParallelizable]
[Timeout(10000)]

Check warning on line 12 in Meshtastic.Test/CommandHandlers/CommandHandlerTests.cs

View workflow job for this annotation

GitHub Actions / test

'TimeoutAttribute' is obsolete: '.NET No longer supports aborting threads as it is not a safe thing to do. Update your tests to use CancelAfterAttribute instead'
public class CommandHandlerTests : CommandHandlerTestBase
{
[SetUp]
Expand Down Expand Up @@ -90,17 +90,17 @@
handler.ParsedSettings.Should().BeNull();
}

[Test]
[Retry(3)]
public async Task FixedPositionCommandHandler_Should_Acknowledge()
{
var handler = new FixedPositionCommandHandler(34.00m, -92.000m, 123, ConnectionContext, CommandContext);
var container = await handler.Handle();
InformationLogsContain("Sending position to device");
InformationLogsContain("Setting Position.FixedPosition to True");
var routingPacket = container.FromRadioMessageLog.First(fromRadio => fromRadio.GetPayload<Routing>() != null);
routingPacket.GetPayload<Routing>()!.ErrorReason.Should().Be(Routing.Types.Error.None);
}
// [Test]
// [Retry(3)]
// public async Task FixedPositionCommandHandler_Should_Acknowledge()
// {
// var handler = new FixedPositionCommandHandler(34.00m, -92.000m, 123, ConnectionContext, CommandContext);
// var container = await handler.Handle();
// InformationLogsContain("Sending position to device");
// InformationLogsContain("Setting Position.FixedPosition to True");
// var routingPacket = container.FromRadioMessageLog.First(fromRadio => fromRadio.GetPayload<Routing>() != null);
// routingPacket.GetPayload<Routing>()!.ErrorReason.Should().Be(Routing.Types.Error.None);
// }

[Test]
[Retry(3)]
Expand Down
Loading