Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 33f368d

Browse files
committed
snapfs_get_snapshot_timestamp test fixed
1 parent 28b2e3b commit 33f368d

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Parsed test spec with 1 sessions
2+
3+
starting permutation: s1_mk_sn
4+
step s1_mk_sn:
5+
select 1 as "make_snapshot" from pg_make_snapshot();
6+
create table foo as select 'test_data';
7+
select ( now() - ( select pg_get_snapshot_timestamp( ( select recent_snapshot from pg_control_snapshot() ) ) ) ) between '0 sec'::interval and '1 min'::interval as "timestamp_check"
8+
9+
make_snapshot
10+
11+
1
12+
timestamp_check
13+
14+
t
15+
pg_remove_snapshot
16+
17+

src/test/isolation/snap_schedule

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ test: snapfs_switch_to_snapshot_three_backends
22
test: snapfs_switch_to_snapshot_sequence
33
test: snapfs_revert_to_snapshot_sequence
44
test: snapfs_set_backend_snapshot_sequence
5+
test: snapfs_get_snapshot_timestamp
56
test: snapfs_switch_to_snapshot_temp_table
67
test: snapfs_switch_to_snapshot_temp_table_2

src/test/isolation/specs/snapfs_get_snapshot_timeout.spec renamed to src/test/isolation/specs/snapfs_get_snapshot_timestamp.spec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ teardown {
77
session "s1"
88
step "s1_mk_sn" {
99
select 1 as "make_snapshot" from pg_make_snapshot();
10+
create table foo as select 'test_data';
1011
select ( now() - ( select pg_get_snapshot_timestamp( ( select recent_snapshot from pg_control_snapshot() ) ) ) ) between '0 sec'::interval and '1 min'::interval as "timestamp_check"
1112
}
1213
step "s1_rc_sn_1" {

0 commit comments

Comments
 (0)