Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IllegalArgumentException: TapeRoot needs to be an instance of AndroidTapeRoot #64

Open
malachid opened this issue Dec 13, 2017 · 1 comment

Comments

@malachid
Copy link

If you use the .tapeRoot(file) builder, it constructs a DefaultTapeRoot, which in turn causes PermissionRule to fail as it only allows AndroidTapeRoot parameters.

@malachid
Copy link
Author

This is due to the OkReplayRuleChain. You can workaround the issue by doing it manually:

    @Rule
    public final TestRule testRule = RuleChain.outerRule(new RecorderRule(okReplayConfig)).around(activityRule);

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

No branches or pull requests

1 participant