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

Test failure: *mockselector.MockIAnalyzer does not implement selector.IAnalyzer (missing method GetContainer) #162

Open
xhd2015 opened this issue Apr 2, 2024 · 0 comments

Comments

@xhd2015
Copy link

xhd2015 commented Apr 2, 2024

when running test of chaosmeta-inject-operator/pkg/scopehandler/pod/handler_test.go, as the following:

cd chaosmeta-inject-operator 
go test -v ./pkg/scopehandler/pod

Error output:

# github.com/traas-stack/chaosmeta/chaosmeta-inject-operator/pkg/scopehandler/pod [github.com/traas-stack/chaosmeta/chaosmeta-inject-operator/pkg/scopehandler/pod.test]
pkg/scopehandler/pod/handler_test.go:101:10: cannot use analyzerMock (variable of type *mockselector.MockIAnalyzer) as "github.com/traas-stack/chaosmeta/chaosmeta-inject-operator/pkg/selector".IAnalyzer value in return statement: *mockselector.MockIAnalyzer does not implement "github.com/traas-stack/chaosmeta/chaosmeta-inject-operator/pkg/selector".IAnalyzer (missing method GetContainer)
FAIL    github.com/traas-stack/chaosmeta/chaosmeta-inject-operator/pkg/scopehandler/pod [build failed]
FAIL
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