Skip to content

Cleanup GTests for simple_switch_grpc: remove global switch instance#1348

Open
p2peek wants to merge 4 commits intop4lang:mainfrom
p2peek:fix-simple-switch-grpc-tests
Open

Cleanup GTests for simple_switch_grpc: remove global switch instance#1348
p2peek wants to merge 4 commits intop4lang:mainfrom
p2peek:fix-simple-switch-grpc-tests

Conversation

@p2peek
Copy link
Copy Markdown

@p2peek p2peek commented Mar 8, 2026

Fixes #783

The current tests create a single SimpleSwitchGrpc instance shared across all tests through a global GoogleTest environment.

This can cause state to persist between tests (e.g. port operational status), which may lead to unrelated tests failing.

This change removes the global test environment so that tests no longer share a single switch instance, improving test isolation.

Signed-off-by: Prakash Kumar <kumarprakash3909@gmail.com>
Signed-off-by: Prakash <prakash@prakash.localdomain>
@p2peek p2peek force-pushed the fix-simple-switch-grpc-tests branch 10 times, most recently from 60000e1 to 369a74b Compare March 11, 2026 13:43
Signed-off-by: Prakash <kumarprakash3909@gmail.com>
Signed-off-by: Prakash <prakash@prakash.localdomain>
@p2peek p2peek force-pushed the fix-simple-switch-grpc-tests branch from 369a74b to 0eeb702 Compare March 11, 2026 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cleanup GTests for simple_switch_grpc

1 participant