Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
freeznet committed Dec 18, 2024
1 parent c3114d3 commit 9d64f9c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pulsar/resource_pulsar_topic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,17 @@ func TestImportExistingTopic(t *testing.T) {
pnum := 10

fullID := strings.Join([]string{ttype + ":/", "public", "default", tname}, "/")
topicName, err := utils.GetTopicName(fullID)
if err != nil {
t.Fatalf("ERROR_GETTING_TOPIC_NAME: %v", err)
}

resource.Test(t, resource.TestCase{
PreCheck: func() {
testAccPreCheck(t)
createTopic(t, fullID, pnum)
t.Cleanup(func() {
if err := getClientFromMeta(testAccProvider.Meta()).Topics().Delete(fullID); err != nil {
if err := getClientFromMeta(testAccProvider.Meta()).Topics().Delete(*topicName, true, pnum == 0); err != nil {
t.Fatalf("ERROR_DELETING_TEST_TOPIC: %v", err)
}
})
Expand Down

0 comments on commit 9d64f9c

Please sign in to comment.