Skip to content

Commit 9564ab2

Browse files
authored
test_kill_pq_bill has been improved (#6984)
1 parent 4cdd4a7 commit 9564ab2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ydb/tests/fq/yds/test_kill_pq_bill.py

+9
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import json
44
import os
55
import pytest
6+
import time
67

78
from ydb.tests.tools.fq_runner.kikimr_utils import yq_v1
89
from ydb.tests.tools.datastreams_helpers.test_yds_base import TestYdsBase
@@ -36,6 +37,14 @@ def test_do_not_bill_pq(self, kikimr, client):
3637
self.write_stream(data_1mb)
3738
self.read_stream(message_count)
3839

40+
# TODO: fix this place. We need to correct to account for the ingress bytes in case of an aborted query.
41+
for _ in range(20):
42+
stat = json.loads(client.describe_query(query_id).result.query.statistics.json)
43+
graph_name = "Graph=0"
44+
if graph_name in stat and "IngressBytes" in stat[graph_name]:
45+
break
46+
time.sleep(1)
47+
3948
client.abort_query(query_id)
4049
client.wait_query_status(query_id, fq.QueryMeta.ABORTED_BY_USER)
4150

0 commit comments

Comments
 (0)