Skip to content

Commit 0e4f7f6

Browse files
committed
Fix typo, use gjson values in consistent manner
1 parent c60243f commit 0e4f7f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/e2e/separate_nodes_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ func TestSeparateEDnode(t *testing.T) {
9898
bootstrapHostJSON := gjson.Get(string(body), `host-default-list.list-items.list-item.#(roleref="bootstrap").nameref`)
9999
t.Logf(`BootstrapHost: = %s`, bootstrapHostJSON)
100100
// verify bootstrap host exists on the cluster
101-
if bootstrapHostJSON.String() == "" {
101+
if bootstrapHostJSON.Str == "" {
102102
t.Errorf("Bootstrap does not exists on cluster")
103103
}
104104

@@ -112,7 +112,7 @@ func TestSeparateEDnode(t *testing.T) {
112112
"auth.adminUsername": username,
113113
"auth.adminPassword": password,
114114
"group.name": "enode",
115-
"bootstrapHostName": bootstrapHost.String(),
115+
"bootstrapHostName": bootstrapHostJSON.Str,
116116
"logCollection.enabled": "false",
117117
},
118118
}
@@ -163,7 +163,7 @@ func TestSeparateEDnode(t *testing.T) {
163163
t.Logf(`enodeHostCount: = %s`, enodeHostCountJSON)
164164

165165
// verify bootstrap host exists on the cluster
166-
if !strings.Contains(enodeHostCountJSON.String(), "2") {
166+
if enodeHostCountJSON.Num != 2 {
167167
t.Errorf("enode hosts does not exists on cluster")
168168
}
169169
}

0 commit comments

Comments
 (0)