From abe3d44369d8dd5e825eca72423f8f0eb488f935 Mon Sep 17 00:00:00 2001 From: "Jokob @NetAlertX" <96159884+jokob-sk@users.noreply.github.com> Date: Sun, 7 Dec 2025 22:44:38 +0000 Subject: [PATCH] test fix, social post delay to 60 min Signed-off-by: GitHub --- .github/workflows/social_post_on_release.yml | 4 ++-- test/test_graphq_endpoints.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/social_post_on_release.yml b/.github/workflows/social_post_on_release.yml index cf559ee3..eed6b3dc 100755 --- a/.github/workflows/social_post_on_release.yml +++ b/.github/workflows/social_post_on_release.yml @@ -7,8 +7,8 @@ jobs: post-discord: runs-on: ubuntu-latest steps: - - name: Wait for 15 minutes - run: sleep 900 # 15 minutes delay + - name: Wait for 60 minutes + run: sleep 3600 # 60 minutes delay - name: Post to Discord run: | diff --git a/test/test_graphq_endpoints.py b/test/test_graphq_endpoints.py index 38788f36..15078194 100755 --- a/test/test_graphq_endpoints.py +++ b/test/test_graphq_endpoints.py @@ -39,10 +39,10 @@ def test_graphql_debug_get(client): def test_graphql_post_unauthorized(client): - """POST /graphql without token should return 401""" + """POST /graphql without token should return 403""" query = {"query": "{ devices { devName devMac } }"} resp = client.post("/graphql", json=query) - assert resp.status_code == 401 + assert resp.status_code == 403 # Check either error field or message field for the unauthorized text error_text = resp.json.get("error", "") or resp.json.get("message", "") assert "Unauthorized" in error_text or "Forbidden" in error_text