traas-stack/chaosmeta

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

xhd2015 opened this issue · 0 comments

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