Skip to content

Commit

Permalink
format, added test case for default span on GetContext
Browse files Browse the repository at this point in the history
  • Loading branch information
Tianlin-Zhao committed Aug 20, 2020
1 parent 1a90fec commit 8aa9b7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/test/trace/tracer_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ TEST(Tracer, StartSpanWithAttributes)

auto &span_data = spans_received->at(0);
ASSERT_EQ(9, span_data->GetAttributes().size());
ASSERT_EQ(314159, nostd::get<int64_t>(span_data->GetAttributes().at("attr1")));
ASSERT_EQ(314159, nostd::get<int>(span_data->GetAttributes().at("attr1")));
ASSERT_EQ(false, nostd::get<bool>(span_data->GetAttributes().at("attr2")));
ASSERT_EQ(314159, nostd::get<unsigned int>(span_data->GetAttributes().at("attr3")));
ASSERT_EQ(-20, nostd::get<int32_t>(span_data->GetAttributes().at("attr4")));
Expand Down

0 comments on commit 8aa9b7f

Please sign in to comment.