all the refactor
This commit is contained in:
@@ -159,7 +159,7 @@ func callWithRaw(t *testing.T, h http.Handler, name string, args map[string]any)
|
||||
t.Fatalf("%s: status %d", name, rec.Code)
|
||||
}
|
||||
var resp struct {
|
||||
Result rawResult `json:"result"`
|
||||
Result rawResult `json:"result"`
|
||||
Error *struct{ Message string } `json:"error"`
|
||||
}
|
||||
if err := json.Unmarshal(rec.Body.Bytes(), &resp); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user