Skip to content

Commit 6318681

Browse files
committed
logictest: add back assertion that was rewritten accidentally
ee263e2 rewrote this test so that it expects no spanconfig. This was likely a mistake caused by rewriting before retrying for long enough. This patch adds back the assertion, and adds another one that should prevent accidental rewrites. Release note: None
1 parent 221c3df commit 6318681

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pkg/sql/logictest/testdata/logic_test/zone_config_system_tenant

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,14 @@ SELECT crdb_internal.pb_to_json('cockroach.roachpb.SpanConfig', config)
121121
FROM system.span_configurations
122122
WHERE end_key > (SELECT crdb_internal.table_span($t_id)[1])
123123
----
124+
{"gcPolicy": {"ttlSeconds": 14400}, "numReplicas": 3, "rangeMaxBytes": "67108864", "rangeMinBytes": "1048576"}
125+
126+
# Run the same query again and make sure there is 1 row. This assertion is
127+
# only here to prevent the previous test case from being rewritten accidentally.
128+
statement count 1
129+
SELECT crdb_internal.pb_to_json('cockroach.roachpb.SpanConfig', config)
130+
FROM system.span_configurations
131+
WHERE end_key > (SELECT crdb_internal.table_span($t_id)[1])
124132

125133
statement ok
126134
CREATE TABLE db2.t2 (i INT PRIMARY KEY);

0 commit comments

Comments
 (0)