Skip to content

Commit 3a7cf40

Browse files
committed
Fix transport test client setup expectation
1 parent 0f180f5 commit 3a7cf40

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/moqt_session_test.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,7 @@ PublishPlan make_span_backed_plan(DraftVersion draft) {
454454
int main() {
455455
bool ok = true;
456456
constexpr std::string_view kTestTrackNamespace = "interop";
457+
constexpr std::uint64_t kExpectedClientMaxRequestId = 100;
457458
const EndpointConfig endpoint{
458459
.host = "example.com",
459460
.port = 4433,
@@ -499,7 +500,7 @@ int main() {
499500
"expected draft-14 CLIENT_SETUP to decode");
500501
ok &= expect(authority == "example.com:4433", "expected draft-14 CLIENT_SETUP authority");
501502
ok &= expect(path == "/", "expected draft-14 CLIENT_SETUP path");
502-
ok &= expect(max_request_id == 0, "expected draft-14 CLIENT_SETUP max_request_id");
503+
ok &= expect(max_request_id == kExpectedClientMaxRequestId, "expected draft-14 CLIENT_SETUP max_request_id");
503504
ok &= expect(message_type(transport.writes[1].bytes) == 0x06, "expected PUBLISH_NAMESPACE");
504505
ok &= expect(transport.writes[1].bytes == std::vector<std::uint8_t>({0x06, 0x00, 0x0b, 0x00, 0x01, 0x07, 0x69, 0x6e,
505506
0x74, 0x65, 0x72, 0x6f, 0x70, 0x00}),
@@ -805,7 +806,7 @@ int main() {
805806
"expected draft-16 CLIENT_SETUP to decode");
806807
ok &= expect(authority == "example.com:4433", "expected draft-16 CLIENT_SETUP authority");
807808
ok &= expect(path == "/", "expected draft-16 CLIENT_SETUP path");
808-
ok &= expect(max_request_id == 0, "expected draft-16 CLIENT_SETUP max_request_id");
809+
ok &= expect(max_request_id == kExpectedClientMaxRequestId, "expected draft-16 CLIENT_SETUP max_request_id");
809810
ok &= expect(message_type(draft16_transport.writes[1].bytes) == 0x06, "expected draft-16 PUBLISH_NAMESPACE");
810811
ok &= expect(draft16_transport.writes[1].bytes == std::vector<std::uint8_t>({0x06, 0x00, 0x0b, 0x00, 0x01, 0x07,
811812
0x69, 0x6e, 0x74, 0x65, 0x72, 0x6f,

0 commit comments

Comments
 (0)