Skip to content

Commit d37187b

Browse files
committed
Fixed flaky test
1 parent 6d47751 commit d37187b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ydb/core/kqp/ut/federated_query/datastreams/datastreams_ut.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,7 @@ class TStreamingSysViewTestFixture : public TStreamingTestFixture {
761761
inline static constexpr char INPUT_TOPIC_NAME[] = "sysViewInput";
762762
inline static constexpr char OUTPUT_TOPIC_NAME[] = "sysViewOutput";
763763
inline static constexpr char PQ_SOURCE[] = "sysViewSourceName";
764+
inline static constexpr TDuration STATS_WAIT_DURATION = TDuration::Seconds(2);
764765

765766
public:
766767
void Setup() {
@@ -3027,7 +3028,7 @@ Y_UNIT_TEST_SUITE(KqpStreamingQueriesSysView) {
30273028
StartQuery("C");
30283029
StartQuery("D");
30293030
StartQuery("E");
3030-
Sleep(TDuration::Seconds(1));
3031+
Sleep(STATS_WAIT_DURATION);
30313032

30323033
CheckSysView({
30333034
{"A"}, {"B"}, {"C"}, {"D"}, {"E"}
@@ -3069,6 +3070,7 @@ Y_UNIT_TEST_SUITE(KqpStreamingQueriesSysView) {
30693070
StartQuery("B");
30703071
StartQuery("C");
30713072
StartQuery("D");
3073+
Sleep(STATS_WAIT_DURATION);
30723074

30733075
CheckSysView({
30743076
{"A"}, {"B"}, {"C"}, {"D"}
@@ -3122,7 +3124,7 @@ Y_UNIT_TEST_SUITE(KqpStreamingQueriesSysView) {
31223124
pqGateway->WaitWriteSession(OutputTopic)->ExpectMessage("test0");
31233125

31243126
{
3125-
Sleep(TDuration::Seconds(1));
3127+
Sleep(STATS_WAIT_DURATION);
31263128
const auto result = CheckSysView({{
31273129
.Name = queryName,
31283130
.Status = "RUNNING",
@@ -3418,6 +3420,7 @@ Y_UNIT_TEST_SUITE(KqpStreamingQueriesSysView) {
34183420
return count == 0;
34193421
});
34203422

3423+
Sleep(STATS_WAIT_DURATION);
34213424
CheckSysView(rows);
34223425
}
34233426
}

0 commit comments

Comments
 (0)