File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments