From 1330fe04abcc9d1a966b09a2f0954351174c75e2 Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Fri, 3 May 2024 16:11:26 +0100 Subject: [PATCH 1/3] Test FieldType.LONGFORM --- packages/server/src/api/routes/tests/search.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/api/routes/tests/search.spec.ts b/packages/server/src/api/routes/tests/search.spec.ts index cec686ba74..4f3dd1577a 100644 --- a/packages/server/src/api/routes/tests/search.spec.ts +++ b/packages/server/src/api/routes/tests/search.spec.ts @@ -156,7 +156,7 @@ describe.each([ return expectSearch({ query }) } - describe("strings", () => { + describe.each([FieldType.STRING, FieldType.LONGFORM])("%s", () => { beforeAll(async () => { await createTable({ name: { name: "name", type: FieldType.STRING }, From f49e36d0dd7da1eb42ad819568fc6ce2f12dc796 Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Fri, 3 May 2024 16:14:47 +0100 Subject: [PATCH 2/3] Search tests for FieldType.OPTIONS --- packages/server/src/api/routes/tests/search.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/api/routes/tests/search.spec.ts b/packages/server/src/api/routes/tests/search.spec.ts index 4f3dd1577a..6ab7ac61d4 100644 --- a/packages/server/src/api/routes/tests/search.spec.ts +++ b/packages/server/src/api/routes/tests/search.spec.ts @@ -508,7 +508,7 @@ describe.each([ }) }) - describe("array of strings", () => { + describe.each([FieldType.ARRAY, FieldType.OPTIONS])("%s", () => { beforeAll(async () => { await createTable({ numbers: { From f66fc306eb6e45d061430535309e0e854d869d48 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Fri, 3 May 2024 17:30:15 +0100 Subject: [PATCH 3/3] Updating the address used to connect to CouchDB to using 127.0.0.1 rather than localhost to avoid overlap with IPv6 issues. --- hosting/couchdb/runner.v2.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hosting/couchdb/runner.v2.sh b/hosting/couchdb/runner.v2.sh index 7ee24327a1..f8cbe49b8f 100644 --- a/hosting/couchdb/runner.v2.sh +++ b/hosting/couchdb/runner.v2.sh @@ -70,10 +70,10 @@ sed -i "s#COUCHDB_ERLANG_COOKIE#${COUCHDB_ERLANG_COOKIE}#g" /opt/clouseau/clouse /opt/clouseau/bin/clouseau > /dev/stdout 2>&1 & # Start CouchDB. -/docker-entrypoint.sh /opt/couchdb/bin/couchdb & +/docker-entrypoint.sh /opt/couchdb/bin/couchdb > /dev/stdout 2>&1 & -# Start SQS. -/opt/sqs/sqs --server "http://localhost:5984" --data-dir ${DATA_DIR}/sqs --bind-address=0.0.0.0 & +# Start SQS. Use 127.0.0.1 instead of localhost to avoid IPv6 issues. +/opt/sqs/sqs --server "http://127.0.0.1:5984" --data-dir ${DATA_DIR}/sqs --bind-address=0.0.0.0 > /dev/stdout 2>&1 & # Wait for CouchDB to start up. while [[ $(curl -s -w "%{http_code}\n" http://localhost:5984/_up -o /dev/null) -ne 200 ]]; do