Skip to content

Commit

Permalink
Fix swapped namespaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
Miles-Garnsey committed May 2, 2024
1 parent 3a73b93 commit 6076920
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/kubectl-k8ssandra/register/register_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ func TestRegister(t *testing.T) {
client1 := (*multiEnv)[0].GetClient("k8ssandra-operator")
client2 := (*multiEnv)[1].GetClient("k8ssandra-operator")

if err := client1.Create((*multiEnv)[0].Context, &corev1.Namespace{ObjectMeta: metav1.ObjectMeta{Name: "dest-namespace"}}); err != nil {
if err := client1.Create((*multiEnv)[0].Context, &corev1.Namespace{ObjectMeta: metav1.ObjectMeta{Name: "source-namespace"}}); err != nil {
t.Fatal(err)
}

if err := client2.Create((*multiEnv)[1].Context, &corev1.Namespace{ObjectMeta: metav1.ObjectMeta{Name: "source-namespace"}}); err != nil {
if err := client2.Create((*multiEnv)[1].Context, &corev1.Namespace{ObjectMeta: metav1.ObjectMeta{Name: "dest-namespace"}}); err != nil {
t.Fatal(err)
}

Expand Down

0 comments on commit 6076920

Please sign in to comment.