Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9c18104

Browse files
committed
Simplify sequence test
We maintained two separate expected files because log_cnt could be oneof two values. Rewrite the test so that we only need one file.Reviewed-by: Petr Jelinek <petr.jelinek@2ndquadrant.com>
1 parente8ee3d6 commit9c18104

File tree

3 files changed

+9
-564
lines changed

3 files changed

+9
-564
lines changed

‎src/test/regress/expected/sequence.out

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,12 @@ SELECT nextval('foo_seq_new');
190190
2
191191
(1 row)
192192

193-
SELECT * FROM foo_seq_new;
194-
last_value | log_cnt | is_called
195-
------------+---------+-----------
196-
2 | 31 | t
193+
-- log_cnt can be higher if there is a checkpoint just at the right
194+
-- time, so just test for the expected range
195+
SELECT last_value, log_cnt IN (31, 32) AS log_cnt_ok, is_called FROM foo_seq_new;
196+
last_value | log_cnt_ok | is_called
197+
------------+------------+-----------
198+
2 | t | t
197199
(1 row)
198200

199201
DROP SEQUENCE foo_seq_new;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp