Skip to content

Commit 097abd0

Browse files
linting
1 parent af33b51 commit 097abd0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/tests/network/PacketDeduplicator.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,16 +125,16 @@ namespace extension {
125125
PacketDeduplicator dedup;
126126

127127
WHEN("we add packets near the uint16_t wrap around point") {
128-
uint16_t start = 65530;
128+
const uint16_t start = 65530;
129129

130130
for (uint16_t i = 0; i < 10; ++i) {
131-
uint16_t packet_id = (start + i) % 65536;
131+
const uint16_t packet_id = (start + i) % 65536;
132132
dedup.add_packet(packet_id);
133133
}
134134

135135
THEN("all added packets should be marked as duplicates") {
136136
for (uint16_t i = 0; i < 10; ++i) {
137-
uint16_t packet_id = (start + i) % 65536;
137+
const uint16_t packet_id = (start + i) % 65536;
138138
REQUIRE(dedup.is_duplicate(packet_id));
139139
}
140140
}
@@ -175,7 +175,7 @@ namespace extension {
175175
PacketDeduplicator dedup;
176176

177177
WHEN("The first packet ID is greater than uint16_t max/2") {
178-
uint16_t high_id = 40000; // > 32768
178+
const uint16_t high_id = 40000; // > 32768
179179
dedup.add_packet(high_id);
180180

181181
THEN("The first packet should be marked as a duplicate") {

0 commit comments

Comments
 (0)