File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed
Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change 55 "testing"
66
77 "github.com/grafana/grafana-plugin-sdk-go/backend"
8- "github.com/grafana/grafana-plugin-sdk-go/backend/instancemgmt"
98 "github.com/grafana/mqtt-datasource/pkg/mqtt"
109 "github.com/grafana/mqtt-datasource/pkg/plugin"
1110 "github.com/stretchr/testify/require"
@@ -43,21 +42,6 @@ func TestCheckHealthHandler(t *testing.T) {
4342 })
4443}
4544
46- type fakeInstanceManager struct {
47- client * fakeMQTTClient
48- err error
49- }
50-
51- func (im * fakeInstanceManager ) Get (pc backend.PluginContext ) (instancemgmt.Instance , error ) {
52- return & plugin.MQTTDatasource {
53- Client : im .client ,
54- }, im .err
55- }
56-
57- func (im * fakeInstanceManager ) Do (pc backend.PluginContext , fn instancemgmt.InstanceCallbackFunc ) error {
58- return nil
59- }
60-
6145type fakeMQTTClient struct {
6246 connected bool
6347 subscribed bool
You can’t perform that action at this time.
0 commit comments