summaryrefslogtreecommitdiff
path: root/shaping/test/gtest_shaper.cpp
diff options
context:
space:
mode:
authorliuchang <[email protected]>2023-04-04 02:33:37 +0000
committerliuchang <[email protected]>2023-04-04 02:33:50 +0000
commit1d5f1ee74ea47593c586cfa709aea971eb478853 (patch)
treeacca9b753bfd17df50a0657b965ad32be9f33faf /shaping/test/gtest_shaper.cpp
parent72ed9151b6dfa000b413e667e52d59498c7aaad7 (diff)
add global metrics
Diffstat (limited to 'shaping/test/gtest_shaper.cpp')
-rw-r--r--shaping/test/gtest_shaper.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/shaping/test/gtest_shaper.cpp b/shaping/test/gtest_shaper.cpp
index 6106e11..e60118c 100644
--- a/shaping/test/gtest_shaper.cpp
+++ b/shaping/test/gtest_shaper.cpp
@@ -7,6 +7,7 @@
#include "shaper.h"
#include "shaper_maat.h"
#include "shaper_stat.h"
+#include "shaper_global_stat.h"
#include "shaper_marsio.h"
#include "stub.h"
@@ -226,6 +227,7 @@ TEST(single_session, udp_tx_in_order)
/***********send stat data here********************/
stub_curr_time_inc(STUB_TIME_INC_FOR_METRIC_SEND);//inc time to send metric
fieldstat_dynamic_passive_output(ctx->stat->instance);//send metric manualy
+ fieldstat_passive_output(ctx->global_stat->instance);
shaping_flow_free(sf);
shaping_engine_destroy(ctx);
@@ -1459,6 +1461,6 @@ TEST(statistics, udp_queueing_pkt)
int main(int argc, char **argv)
{
testing::InitGoogleTest(&argc, argv);
- //testing::GTEST_FLAG(filter) = "single_session.udp_borrow_same_priority_9";
+ testing::GTEST_FLAG(filter) = "single_session.udp_tx_in_order";
return RUN_ALL_TESTS();
} \ No newline at end of file