Skip to content

Commit

Permalink
fix(test): build bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
asvol committed Jul 4, 2024
1 parent 8b0d51c commit eb582ef
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Asv.Mavlink.Test/Microservices/AsvRsga/AsvRsgaExTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,17 @@ public async Task Client_request_compatibility_server_respond_it()
CreateEx(out var clientEx, out var serverEx);
var origin = new HashSet<AsvRsgaCustomMode>(Enum.GetValues<AsvRsgaCustomMode>());
serverEx.GetCompatibility = () => origin;
var originFreq = uint.MaxValue;
var originMode = AsvRsgaCustomMode.AsvRsgaCustomModeTxGp;
serverEx.SetMode = async (mode, freq, cancel) =>
serverEx.SetMode = async (mode, cancel) =>
{
Assert.Equal(originMode,mode);
Assert.Equal(originFreq,freq);
return MavResult.MavResultAccepted;
};
await clientEx.RefreshInfo();
using var c = clientEx.AvailableModes.BindToObservableList(out var list).Subscribe();
Assert.Equal(origin.Count, list.Count);
Assert.True(origin.All(x => list.Items.Contains(x)));

await clientEx.SetMode(originMode, originFreq);
await clientEx.SetMode(originMode);
}
}

0 comments on commit eb582ef

Please sign in to comment.