Skip to content

test(mcp): isolate invalid action trace test - #66

Open
RohanOnKeys wants to merge 1 commit into
google:mainfrom
RohanOnKeys:fix/mobile-inspect-invalid-action-62
Open

RohanOnKeys wants to merge 1 commit into
google:mainfrom
RohanOnKeys:fix/mobile-inspect-invalid-action-62

Conversation

@RohanOnKeys

Copy link
Copy Markdown

Summary

Make "test_mobile_inspect_trace_invalid_action" deterministic by isolating it from local filesystem state.

Changes

  • use the existing "temp_trace_env" fixture
  • create an empty "data_engine.db" in the temporary trace directory before calling "mobile_inspect_trace"

This ensures the test consistently reaches the unsupported action path instead of depending on whether a local "traces/data_engine.db" already exists.

Fixes #62

Signed-off-by: Rohan Pattanayak

@RohanOnKeys

Copy link
Copy Markdown
Author

@google-admin

@RohanOnKeys

Copy link
Copy Markdown
Author

@somew1nd @weilinliu @jhshi1879 could you pls take a look?

@RohanOnKeys

Copy link
Copy Markdown
Author

ping

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.

test_mobile_inspect_trace_invalid_action passes or fails based on unrelated on-disk state

1 participant