@@ -462,23 +462,23 @@ TEST(DynamicBPFTraceConnectorTest, BPFTraceCheckPrintfsError) {
462462 HasSubstr (" All printf statements must have exactly the same format string" )));
463463}
464464
465- constexpr std::string_view kServerPath_1_23 =
466- " src/stirling/source_connectors/socket_tracer/protocols/http2/testing/go_grpc_server/"
467- " golang_1_23_grpc_server" ;
468465constexpr std::string_view kServerPath_1_24 =
469466 " src/stirling/source_connectors/socket_tracer/protocols/http2/testing/go_grpc_server/"
470467 " golang_1_24_grpc_server" ;
468+ constexpr std::string_view kServerPath_1_25 =
469+ " src/stirling/source_connectors/socket_tracer/protocols/http2/testing/go_grpc_server/"
470+ " golang_1_25_grpc_server" ;
471471
472472TEST (DynamicBPFTraceConnectorTest, InsertUProbeTargetObjPaths) {
473- std::string go1_23_binary_path = px::testing::BazelRunfilePath (kServerPath_1_23 ).string ();
474473 std::string go1_24_binary_path = px::testing::BazelRunfilePath (kServerPath_1_24 ).string ();
474+ std::string go1_25_binary_path = px::testing::BazelRunfilePath (kServerPath_1_25 ).string ();
475475
476- ASSERT_TRUE (fs::Exists (go1_23_binary_path));
477476 ASSERT_TRUE (fs::Exists (go1_24_binary_path));
477+ ASSERT_TRUE (fs::Exists (go1_25_binary_path));
478478
479479 DeploymentSpec spec;
480- spec.mutable_path_list ()->add_paths (go1_23_binary_path);
481480 spec.mutable_path_list ()->add_paths (go1_24_binary_path);
481+ spec.mutable_path_list ()->add_paths (go1_25_binary_path);
482482
483483 std::string uprobe_script =
484484 " // Deploys uprobes to trace http2 traffic.\n "
@@ -489,16 +489,16 @@ TEST(DynamicBPFTraceConnectorTest, InsertUProbeTargetObjPaths) {
489489 InsertUprobeTargetObjPaths (spec, &uprobe_script);
490490 EXPECT_EQ (
491491 uprobe_script,
492- absl::StrCat (" // Deploys uprobes to trace http2 traffic.\n " , " uprobe:" , go1_23_binary_path ,
492+ absl::StrCat (" // Deploys uprobes to trace http2 traffic.\n " , " uprobe:" , go1_24_binary_path ,
493493 " :\" golang.org/x/net/http2.(*Framer).WriteDataPadded\" ,\n "
494494 " uprobe:" ,
495- go1_24_binary_path ,
495+ go1_25_binary_path ,
496496 " :\" golang.org/x/net/http2.(*Framer).WriteDataPadded\" "
497497 " { printf(\" stream_id: %d, end_stream: %d\" , arg0, arg1); }\n " ,
498- " uretprobe:" , go1_23_binary_path ,
498+ " uretprobe:" , go1_24_binary_path ,
499499 " :\" golang.org/x/net/http2.(*Framer).WriteDataPadded\" ,\n "
500500 " uretprobe:" ,
501- go1_24_binary_path ,
501+ go1_25_binary_path ,
502502 " :\" golang.org/x/net/http2.(*Framer).WriteDataPadded\" "
503503 " { printf(\" retval: %d\" , retval); }" ));
504504}
0 commit comments