Skip to content

Conversation

@OmegaCreations
Copy link
Collaborator

I have JIRA issue created

  • branch and/or PR name(s) includes JIRA ID
  • issue has "Fix version" assigned
  • issue "Status" is set to "In review"
  • PR labels are selected
  • FLP integration tests were ran successful

OmegaCreations and others added 30 commits June 8, 2025 20:40
…liceO2Group/WebUi into feature/TKN/OGUI-1703/basic-typescript-interfaces
…liceO2Group/WebUi into feature/TKN/OGUI-1703/basic-typescript-interfaces
…ithub.com:AliceO2Group/WebUi into feature/TKN/OGUI-1704/data-serialization-utils
…ub.com:AliceO2Group/WebUi into feature/TKN/OGUI-1705/client-central-basic-stream
OmegaCreations and others added 23 commits November 18, 2025 11:08
…github.com:AliceO2Group/WebUi into feature/TKN/OGUI-1754/create-reconnection-scheduler
… github.com:AliceO2Group/WebUi into feature/TKN/OGUI-1755/secure-connections-with-certificates
…tes' of github.com:AliceO2Group/WebUi into feature/TKN/OGUI-1773/handle-token-validation-for-p2p-connections
…onnections' of github.com:AliceO2Group/WebUi into feature/TKN/OGUI-1773/handle-token-validation-for-p2p-connections
…OGUI-1755/secure-connections-with-certificates
…tes' of github.com:AliceO2Group/WebUi into feature/TKN/OGUI-1773/handle-token-validation-for-p2p-connections
…onnections' of github.com:AliceO2Group/WebUi into feature/TKN/OGUI-1777/command-for-security-alerts
… improve type safety, add race condition protection and memore leak prevention
});

describe('isRequestAllowed', () => {
const mockCallback = jest.fn();

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note test

Unused variable mockCallback.

Copilot Autofix

AI 3 days ago

In general, unused variables should be removed to improve readability and avoid confusion. Here, mockCallback is defined but never used inside the describe('isRequestAllowed', ...) block, so the best fix is to delete its declaration line and leave the rest of the tests unchanged.

Concretely, in Tokenization/backend/wrapper/src/test/client/ConnectionManager/Interceptors/grpc.auth.interceptor.test.ts, within the describe('isRequestAllowed', () => { ... }) block, remove line 335: const mockCallback = jest.fn();. No additional imports, methods, or definitions are required because the variable is not used anywhere.

Suggested changeset 1
Tokenization/backend/wrapper/src/test/client/ConnectionManager/Interceptors/grpc.auth.interceptor.test.ts

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/Tokenization/backend/wrapper/src/test/client/ConnectionManager/Interceptors/grpc.auth.interceptor.test.ts b/Tokenization/backend/wrapper/src/test/client/ConnectionManager/Interceptors/grpc.auth.interceptor.test.ts
--- a/Tokenization/backend/wrapper/src/test/client/ConnectionManager/Interceptors/grpc.auth.interceptor.test.ts
+++ b/Tokenization/backend/wrapper/src/test/client/ConnectionManager/Interceptors/grpc.auth.interceptor.test.ts
@@ -332,7 +332,6 @@
 });
 
 describe('isRequestAllowed', () => {
-  const mockCallback = jest.fn();
 
   beforeEach(() => {
     jest.restoreAllMocks();
EOF
@@ -332,7 +332,6 @@
});

describe('isRequestAllowed', () => {
const mockCallback = jest.fn();

beforeEach(() => {
jest.restoreAllMocks();
Copilot is powered by AI and may make mistakes. Always verify output.
@OmegaCreations OmegaCreations committed this autofix suggestion 3 days ago.
OmegaCreations and others added 4 commits December 21, 2025 20:13
…t, function or class

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants