Skip to content

Commit

Permalink
fix TestNamespaceTopicsNamespaceDoesNotExit (#625)
Browse files Browse the repository at this point in the history
fix TestNamespaceTopicsNamespaceDoesNotExit error after pulsar release 2.8.1
ref: apache/pulsar#11172
  • Loading branch information
freeznet authored Sep 28, 2021
1 parent 1d3a9cc commit b0f328e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pulsar/client_impl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ func TestNamespaceTopicsNamespaceDoesNotExit(t *testing.T) {

// fetch from namespace that does not exist
name := generateRandomName()
topics, err := ci.lookupService.GetTopicsOfNamespace(fmt.Sprintf("%s/%s", name, name), internal.Persistent)
topics, err := ci.lookupService.GetTopicsOfNamespace(fmt.Sprintf("public/%s", name), internal.Persistent)
assert.Nil(t, err)
assert.Equal(t, 0, len(topics))
}
Expand All @@ -401,7 +401,7 @@ func TestNamespaceTopicsNamespaceDoesNotExitWebURL(t *testing.T) {

// fetch from namespace that does not exist
name := generateRandomName()
topics, err := ci.lookupService.GetTopicsOfNamespace(fmt.Sprintf("%s/%s", name, name), internal.Persistent)
topics, err := ci.lookupService.GetTopicsOfNamespace(fmt.Sprintf("public/%s", name), internal.Persistent)
assert.NotNil(t, err)
assert.Equal(t, 0, len(topics))
}
Expand Down

0 comments on commit b0f328e

Please sign in to comment.