Skip to content

Commit 150d8ab

Browse files
authored
Merge pull request #111 from jagerman/upgrade-test-fix
Upgrade test fixes
2 parents 8f5c806 + 9da86da commit 150d8ab

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

contrib/upgrade-tests/common.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export PYTHONPATH=.
2323
rm -rf rooms database.db files key_x25519 x25519_{public,private}_key.pem
2424

2525
echo -e "[log]\nlevel = DEBUG" >sogs.ini
26+
echo -e "[rooms]\nactive_prune_threshold = 365000" >>sogs.ini
2627
if [ -n "$SOGS_PGSQL" ]; then
2728
echo -e "[db]\nurl = $SOGS_PGSQL" >>sogs.ini
2829
for table in rooms users messages message_history pinned_messages files room_users \
@@ -101,7 +102,4 @@ do_upgrades() {
101102
# This should exit cleanly to indicate no needed migrations (if it doesn't, i.e. we still
102103
# require migrations after doing a migration then Something Getting Wrong in migrations).
103104
python3 -msogs --check-upgrades
104-
105-
# Run the cleanup job to make sure we have the proper rooms.active_users values
106-
python3 -c 'from sogs.cleanup import cleanup; cleanup()'
107105
}

0 commit comments

Comments
 (0)