Skip to content

Commit

Permalink
Enough to get tests to run?
Browse files Browse the repository at this point in the history
  • Loading branch information
David Robertson committed Aug 18, 2023
1 parent a0a137a commit 8126724
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests-e2e/run-tests-dmr-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export SYNCV3_ADDR='http://localhost:8844'
export SYNCV3_DEBUG=1

# Run synapse and stop it afterwards.
python -m synapse.app.homeserver -c synapse-homeserver.yaml &>/dev/stderr &
python -m synapse.app.homeserver -c synapse-homeserver.yaml &> /dev/null &
SYNAPSE_PID=$!

# Run the binary and stop it afterwards.
Expand All @@ -18,15 +18,15 @@ until [ \
"$(curl -s -w '%{http_code}' -o /dev/null "http://localhost:8844/idonotexist")" \
-eq 404 ]
do
echo 'Waiting for server to start...'
echo 'Waiting for proxy to start...' > /dev/stderr
sleep 1
done

until [ \
"$(curl -s -w '%{http_code}' -o /dev/null "http://localhost:8008/health")" \
-eq 200 ]
do
echo 'Waiting for Synapse to start...'
echo 'Waiting for Synapse to start...' > /dev/stderr
sleep 1
done

Expand Down
26 changes: 25 additions & 1 deletion tests-e2e/synapse-homeserver.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Minimal config for getting Synapse to run
server_name: "exampledomain"
listeners:
- port: 8008
Expand All @@ -9,5 +10,28 @@ database:
name: sqlite3
args:
database: ":memory:"
suppress_key_server_warning: true
report_stats: false

# Disable rate limits
rc_login:
address:
per_second: 123456
burst_count: 123456
account:
per_second: 123456
burst_count: 123456
failed_attempts:
per_second: 123456
burst_count: 123456

rc_message:
per_second: 123456
burst_count: 123456

rc_registration:
per_second: 123456
burst_count: 123456

# Allow tests to create users programmatically
enable_registration: true
enable_registration_without_verification: true

0 comments on commit 8126724

Please sign in to comment.