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

How to implement client.KeysAPI #4904

Closed
reterVision opened this issue Mar 30, 2016 · 1 comment
Closed

How to implement client.KeysAPI #4904

reterVision opened this issue Mar 30, 2016 · 1 comment

Comments

@reterVision
Copy link
Contributor

I was trying to make a mock struct to do some testing with etcd API. But I get these errors:

./etcd_test.go:61: cannot use m (type *MockKeysAPI) as type client.KeysAPI in assignment:
    *MockKeysAPI does not implement client.KeysAPI (wrong type for Create method)
        have Create("golang.org/x/net/context".Context, string, string) (*client.Response, error)
        want Create("github.com/coreos/etcd/vendor/golang.org/x/net/context".Context, string, string) (*client.Response, error)

I'm on Go1.6 now and using current master branch of etcd.

@reterVision
Copy link
Contributor Author

Looks it can be solved if I put etcd into my vendor folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant