Skip to content

Commit 58fe192

Browse files
committed
Fix: json grpc mismath
1 parent ccbe7fe commit 58fe192

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/e2e/test-runner.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,12 @@ type listWorkloadsResponse struct {
108108
}
109109

110110
type workloadView struct {
111-
WorkloadID string `json:"workloadId"`
111+
WorkloadID string `json:"workload_id"`
112112
Status string `json:"status"`
113113
}
114114

115115
type clusterSummaryResponse struct {
116-
TotalWorkloads int32 `json:"totalWorkloads"`
116+
TotalWorkloads int32 `json:"total_workloads"`
117117
}
118118

119119
func loadConfig() config {
@@ -164,7 +164,7 @@ func waitForRegisteredNode(cfg config) error {
164164
return false, nil
165165
}
166166
var summary struct {
167-
TotalNodes int32 `json:"totalNodes"`
167+
TotalNodes int32 `json:"total_nodes"`
168168
}
169169
if err := unmarshalSmokeJSON(out, &summary); err != nil {
170170
return false, nil

0 commit comments

Comments
 (0)