Skip to content

Commit b37deef

Browse files
committed
fix
1 parent 7a55eeb commit b37deef

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

tools/api-generator/watcher_test.go

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,9 @@ func TestNewWatcherExpectProperties(t *testing.T) {
124124
input: map[string]any{
125125
"http-code": 200,
126126
"match": map[string]any{
127-
"values": "IDLE",
127+
"values": []any{
128+
"IDLE",
129+
},
128130
},
129131
},
130132
expectedOutput: nil,
@@ -144,8 +146,10 @@ func TestNewWatcherExpectProperties(t *testing.T) {
144146
input: map[string]any{
145147
"http-code": 200,
146148
"match": map[string]any{
147-
"path": "$.stateName",
148-
"values": "IDLE",
149+
"path": "$.stateName",
150+
"values": []any{
151+
"IDLE",
152+
},
149153
},
150154
},
151155
expectedOutput: &api.WatcherExpectProperties{
@@ -161,8 +165,11 @@ func TestNewWatcherExpectProperties(t *testing.T) {
161165
input: map[string]any{
162166
"http-code": 200,
163167
"match": map[string]any{
164-
"path": "$.stateName",
165-
"values": "IDLE,IDLE2",
168+
"path": "$.stateName",
169+
"values": []any{
170+
"IDLE",
171+
"IDLE2",
172+
},
166173
},
167174
},
168175
expectedOutput: &api.WatcherExpectProperties{

0 commit comments

Comments
 (0)