Skip to content

Commit

Permalink
fix client in test
Browse files Browse the repository at this point in the history
  • Loading branch information
freeznet committed Sep 30, 2024
1 parent 95fbe68 commit d66800f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pulsar/resource_pulsar_sink_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import (
"strings"
"testing"

"github.com/apache/pulsar-client-go/pulsaradmin/pkg/admin"
"github.com/apache/pulsar-client-go/pulsaradmin/pkg/admin/config"
"github.com/apache/pulsar-client-go/pulsaradmin/pkg/rest"
"github.com/apache/pulsar-client-go/pulsaradmin/pkg/utils"
Expand Down Expand Up @@ -84,7 +83,7 @@ func TestSink(t *testing.T) {
}

func testPulsarSinkDestroy(s *terraform.State) error {
client := testAccProvider.Meta().(admin.Client).Sinks()
client := getV3ClientFromMeta(testAccProvider.Meta()).Sinks()

for _, rs := range s.RootModule().Resources {
if rs.Type != "pulsar_sink" {
Expand Down

0 comments on commit d66800f

Please sign in to comment.