mirror of
https://github.com/dz0ny/meshcore-sar.git
synced 2026-08-12 00:40:28 +00:00
Fix channel sync and logging
This commit is contained in:
@@ -45,5 +45,25 @@ void main() {
|
||||
isFalse,
|
||||
);
|
||||
});
|
||||
|
||||
test('finds first missing custom channel slot', () {
|
||||
expect(
|
||||
ConnectionProvider.firstAvailableChannelSlot(
|
||||
occupiedIndices: {1, 2, 4},
|
||||
maxChannels: 6,
|
||||
),
|
||||
3,
|
||||
);
|
||||
});
|
||||
|
||||
test('returns null when all custom channel slots are occupied', () {
|
||||
expect(
|
||||
ConnectionProvider.firstAvailableChannelSlot(
|
||||
occupiedIndices: {1, 2, 3, 4},
|
||||
maxChannels: 5,
|
||||
),
|
||||
isNull,
|
||||
);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user