Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
NameHaibinZhang committed Sep 5, 2024
1 parent d903d86 commit 1922b14
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions core/unittest/metadata/K8sMetadataUnittest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,7 @@ class k8sMetadataUnittest : public ::testing::Test {
mSpanEvent->SetScopeTag(string("key2"), string("value2"));
ProcessorK8sMetadata& processor = *(new ProcessorK8sMetadata);
processor.ProcessEventForSpan(*mSpanEvent, container_vec, remote_ip_vec);
EventsContainer& eventsEnd = eventGroup.MutableEvents();
auto& spanEvent = eventsEnd[0].Cast<SpanEvent>();
APSARA_TEST_EQUAL("kube-proxy-worker", spanEvent.GetTag("peerWorkloadName").to_string());
APSARA_TEST_EQUAL("kube-proxy-worker", mSpanEvent->GetTag("peerWorkloadName").to_string());
APSARA_TEST_TRUE_FATAL(k8sMetadata.GetInfoByIpFromCache("10.41.0.2") != nullptr);
}

Expand Down

0 comments on commit 1922b14

Please sign in to comment.