mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-09 17:59:36 +08:00
fix: json unmarshal int
This commit is contained in:
@@ -80,7 +80,9 @@ func loadFromJSON(path string) (*TCase, error) {
|
||||
}
|
||||
|
||||
tc := &TCase{}
|
||||
err = json.Unmarshal(file, tc)
|
||||
decoder := json.NewDecoder(bytes.NewReader(file))
|
||||
decoder.UseNumber()
|
||||
err = decoder.Decode(tc)
|
||||
return tc, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user