aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorOnur Gündüz <ogunduz@gmail.com>2026-06-14 10:05:59 +0200
committerOnur Gündüz <ogunduz@gmail.com>2026-06-14 10:05:59 +0200
commitc9077bd7494ee4d6f085d4637b8b0a49b1591858 (patch)
treed9cad48adcd3db9a0779ba2c114863691a7bc33e /tests
parent0853cd491deac3b606e4eeadd9c340b57227ebba (diff)
downloadffwd-c9077bd7494ee4d6f085d4637b8b0a49b1591858.tar.gz
ffwd-c9077bd7494ee4d6f085d4637b8b0a49b1591858.zip
server: remove CORS support
Diffstat (limited to 'tests')
-rw-r--r--tests/test_cli.c6
-rw-r--r--tests/test_server.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_cli.c b/tests/test_cli.c
index a6a065c..c5151e9 100644
--- a/tests/test_cli.c
+++ b/tests/test_cli.c
@@ -117,10 +117,10 @@ int main(int argc, char **argv)
expect(run_cli(args, NULL) == 0, "single text exits 0");
expect(stdout_is_embedding(dims.hidden), "single text prints dim floats");
- /* Explicit CPU backend and thread count. */
+ /* Thread count. */
snprintf(args, sizeof(args),
- "-d '%s' --backend cpu -t 2 -v 'hello world'", g_dir);
- expect(run_cli(args, NULL) == 0, "--backend cpu -t 2 -v exits 0");
+ "-d '%s' -t 2 -v 'hello world'", g_dir);
+ expect(run_cli(args, NULL) == 0, "-t 2 -v exits 0");
expect(file_contains(g_err, "Using 2 CPU thread(s)"),
"-v reports the thread count");
diff --git a/tests/test_server.c b/tests/test_server.c
index 2e99881..113b4d7 100644
--- a/tests/test_server.c
+++ b/tests/test_server.c
@@ -320,7 +320,7 @@ static void test_http_embeddings(int port)
{
char *body = NULL;
- /* CORS preflight and routing. */
+ /* Routing. */
TEST_ASSERT(http_req(port, "OPTIONS", "/v1/embeddings", NULL, NULL, NULL,
NULL) == 204);
TEST_ASSERT(http_req(port, "GET", "/v1/embeddings", TEST_API_KEY, NULL,