Skip to content

Commit bde5d52

Browse files
committed
logictest: deflake zone_config_system_tenant
This assertion was accidentally rewritten in 24ef7d5. Add it back, and add an additional assertion to prevent further accidental rewrites. Release note: None
1 parent 1c93e8a commit bde5d52

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

pkg/sql/logictest/testdata/logic_test/zone_config_system_tenant

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,18 @@ FROM system.span_configurations
141141
WHERE end_key > (SELECT crdb_internal.table_span($t_id)[1])
142142
ORDER BY start_key
143143
----
144+
/Table/110 {"gcPolicy": {"ttlSeconds": 90001}, "numReplicas": 3, "rangeMaxBytes": "67108864", "rangeMinBytes": "1048576"}
145+
/Table/111 {"gcPolicy": {"ttlSeconds": 90001}, "numReplicas": 3, "rangeMaxBytes": "1073741824", "rangeMinBytes": "67108864"}
146+
147+
# Run the same query again and make sure there are 2 rows. This assertion is
148+
# only here to prevent the previous test case from being rewritten accidentally.
149+
statement count 2
150+
SELECT
151+
crdb_internal.pretty_key(start_key, -1),
152+
crdb_internal.pb_to_json('cockroach.roachpb.SpanConfig', config)
153+
FROM system.span_configurations
154+
WHERE end_key > (SELECT crdb_internal.table_span($t_id)[1])
155+
ORDER BY start_key
144156

145157
subtest transactional_schemachanges
146158

0 commit comments

Comments
 (0)