From 45f9a81e5270bf7eb97ee8a3989f6b9d7cf0cd29 Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Tue, 8 Mar 2022 21:54:29 +0000 Subject: [PATCH] using single https synapse instance for test harness --- .github/workflows/test.yml | 2 +- test-harness/src/test/kotlin/SmokeTest.kt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 02289f3..8bba25f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -39,7 +39,7 @@ jobs: - name: Start synapse server run: | pip install matrix-synapse - curl -sL https://raw.githubusercontent.com/matrix-org/synapse/develop/demo/start.sh \ + curl -sL https://gist.githubusercontent.com/ouchadam/e3ad09ec382bd91a66d88ab575ea7c31/raw/run.sh \ | bash -s -- --no-rate-limit - name: Run all unit tests diff --git a/test-harness/src/test/kotlin/SmokeTest.kt b/test-harness/src/test/kotlin/SmokeTest.kt index 4243e73..4aa34e9 100644 --- a/test-harness/src/test/kotlin/SmokeTest.kt +++ b/test-harness/src/test/kotlin/SmokeTest.kt @@ -22,8 +22,8 @@ import test.flowTest import test.restoreLoginAndInitialSync import java.util.* -private const val TEST_SERVER_URL_REDIRECT = "http://localhost:8080/" -private const val HTTPS_TEST_SERVER_URL = "https://localhost:8480/" +private const val TEST_SERVER_URL_REDIRECT = "https://localhost:8080/" +private const val HTTPS_TEST_SERVER_URL = "https://localhost:8080/" @TestMethodOrder(MethodOrderer.OrderAnnotation::class) class SmokeTest { @@ -113,7 +113,7 @@ class SmokeTest { private suspend fun createAndRegisterAccount(): TestUser { val aUserName = "${UUID.randomUUID()}" - val userId = UserId("@$aUserName:localhost:8480") + val userId = UserId("@$aUserName:localhost:8080") val aUser = TestUser("aaaa11111zzzz", RoomMember(userId, aUserName, null), HTTPS_TEST_SERVER_URL) val result = TestMatrix(aUser, includeLogging = true, includeHttpLogging = true)