Skip to content

Commit

Permalink
test cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
srahul3 committed Sep 16, 2024
1 parent 70f90a6 commit 74d57f8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions leader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -458,9 +458,11 @@ func Test_namespacesList(t *testing.T) {
if err != nil {
t.Fatal(err)
}

config := &Config{Partition: "default"}
// simulate enterprise consul
testcase = "ent"
nss, err := namespacesList(client)
nss, err := namespacesList(client, config)
if err != nil {
t.Fatal("unexpected error:", err)
}
Expand All @@ -469,7 +471,7 @@ func Test_namespacesList(t *testing.T) {
}
// simulate oss consul
testcase = "oss"
nss, err = namespacesList(client)
nss, err = namespacesList(client, config)
if err != nil {
t.Fatal("unexpected error:", err)
}
Expand All @@ -478,7 +480,7 @@ func Test_namespacesList(t *testing.T) {
}
// simulate other random error
testcase = "err"
nss, err = namespacesList(client)
nss, err = namespacesList(client, config)
if err == nil {
t.Fatal("unexpected error:", err)
}
Expand Down

0 comments on commit 74d57f8

Please sign in to comment.