Skip to content

Commit 6c6aba1

Browse files
authored
chore(go): fix e2e tests (#3535)
1 parent a6a51e7 commit 6c6aba1

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

‎go/tests/api_test.go‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,18 @@ func compare1(path []string, got, want any, add func([]string, string, ...any))
202202
} else {
203203
check()
204204
}
205+
case uint64:
206+
if n, ok := got.(json.Number); ok {
207+
g, err := n.Int64()
208+
if err != nil {
209+
add(path, "got number %s, want %d (%[2]T)", n, w)
210+
}
211+
if uint64(g) != w {
212+
add(path, "got %d, want %d", g, w)
213+
}
214+
} else {
215+
check()
216+
}
205217

206218
case float64:
207219
if n, ok := got.(json.Number); ok {

‎tests/specs/reflection_api.yaml‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,3 @@ tests:
3737
usage:
3838
inputCharacters: 5
3939
outputCharacters: 59
40-
inputImages: 0
41-
inputVideos: 0
42-
inputAudioFiles: 0
43-
outputImages: 0
44-
outputVideos: 0
45-
outputAudioFiles: 0

0 commit comments

Comments
 (0)