Skip to content

Commit 6a5ed87

Browse files
committed
remove fake instance manager
1 parent dfe969a commit 6a5ed87

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

pkg/plugin/datasource_test.go

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
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-
6145
type fakeMQTTClient struct {
6246
connected bool
6347
subscribed bool

0 commit comments

Comments
 (0)