Skip to content

Commit

Permalink
Update postgres-appliance/tests/test_spilo.sh
Browse files Browse the repository at this point in the history
Co-authored-by: Polina Bungina <[email protected]>
  • Loading branch information
FxKu and hughcapet authored Sep 16, 2024
1 parent 5cd8d21 commit b8c40fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion postgres-appliance/tests/test_spilo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ function verify_hourly_log_rotation() {
log_rotation_age=$(docker_exec "$1" "psql -U postgres -tAc \"SHOW log_rotation_age\"")
log_filename=$(docker_exec "$1" "psql -U postgres -tAc \"SHOW log_filename\"")
# we expect 8x24 foreign tables (+8 already existing tables when init with daily rotation)
postgres_log_ftables=$(docker exec "$1" "psql -U postgres -tAc \"SELECT count(*) FROM pg_foreign_table WHERE ftrelid::regclass::text LIKE 'postgres_log_%'\"")
postgres_log_ftables=$(docker_exec "$1" "psql -U postgres -tAc \"SELECT count(*) FROM pg_foreign_table WHERE ftrelid::regclass::text LIKE 'postgres_log_%'\"")

[ "$log_rotation_age" = "1h" ] && [ "$log_filename" = "postgresql-%u-%H.log" ] && [ "$postgres_log_ftables" -ge 192 ]
}
Expand Down

0 comments on commit b8c40fa

Please sign in to comment.