@@ -329,7 +329,7 @@ TEST_F(TracingContextTest, SW8CreateTest) {
329329 std::string target_address (" 10.0.0.1:443" );
330330
331331 // Entry span should be rejected as propagation context
332- EXPECT_FALSE (sc.createSW8HeaderValue (span, target_address).has_value ());
332+ EXPECT_FALSE (sc.createSW8HeaderValue (target_address).has_value ());
333333
334334 auto span2 = sc.createExitSpan (span);
335335
@@ -341,7 +341,7 @@ TEST_F(TracingContextTest, SW8CreateTest) {
341341 std::string expect_sw8 (
342342 " 1-MQ==-dXVpZA==-1-bWVzaA==-c2VydmljZV8w-c2FtcGxlMQ==-MTAuMC4wLjE6NDQz" );
343343
344- EXPECT_EQ (expect_sw8, *sc.createSW8HeaderValue (span2, target_address));
344+ EXPECT_EQ (expect_sw8, *sc.createSW8HeaderValue (target_address));
345345
346346 std::vector<char > target_address_based_vector;
347347 target_address_based_vector.reserve (target_address.size () * 2 );
@@ -354,14 +354,14 @@ TEST_F(TracingContextTest, SW8CreateTest) {
354354
355355 EXPECT_EQ (target_address_based_vector.size (), target_address.size ());
356356 EXPECT_EQ (expect_sw8,
357- *sc.createSW8HeaderValue (span2, target_address_based_vector_view));
357+ *sc.createSW8HeaderValue (target_address_based_vector_view));
358358
359359 // Make sure that the end of target_address_based_vector_view is not '\0'. We
360360 // reserve enough memory for target_address_based_vector, so push back will
361361 // not cause content to be re-allocated.
362362 target_address_based_vector.push_back (' x' );
363363 EXPECT_EQ (expect_sw8,
364- *sc.createSW8HeaderValue (span2, target_address_based_vector_view));
364+ *sc.createSW8HeaderValue (target_address_based_vector_view));
365365}
366366
367367TEST_F (TracingContextTest, ReadyToSendTest) {
0 commit comments