diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 1b52234..f341725 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -28,12 +28,12 @@ jobs: - name: Start MongoDB uses: supercharge/mongodb-github-action@1.10.0 - - name: Start API gateway + - name: Test backend run: | - npm run dev + echo "Starting Servers" + node backend\api_gateway\src\index.js + sleep 5 - - name: Test unique codes and pdf generation - run: | echo "Testing unique prescriber codes and pdf generation" python -m unittest backend/verification_service/test/code_pdf_tests.py diff --git a/backend/auth_service/database_Authentications.py b/backend/auth_service/database_Authentications.py index 474e51c..4512bac 100644 --- a/backend/auth_service/database_Authentications.py +++ b/backend/auth_service/database_Authentications.py @@ -337,6 +337,5 @@ def register_service(service_name, service_url): print("Starting Authentication Service on port", app.config["PORT"]) register_service("authentication-service", f"http://127.0.0.1:{app.config['PORT']}") - if __name__ == "__main__": app.run(debug=True, port=PORT)