rpc: restructure getapplicationlog
response
Move VM-related fields to top-level.
This commit is contained in:
parent
93b0011988
commit
c0e482fe6c
7 changed files with 20 additions and 53 deletions
|
@ -185,9 +185,7 @@ func TestFilteredSubscriptions(t *testing.T) {
|
|||
check: func(t *testing.T, resp *response.Notification) {
|
||||
rmap := resp.Payload[0].(map[string]interface{})
|
||||
require.Equal(t, response.ExecutionEventID, resp.Event)
|
||||
execs := rmap["executions"].([]interface{})
|
||||
exec0 := execs[0].(map[string]interface{})
|
||||
st := exec0["vmstate"].(string)
|
||||
st := rmap["vmstate"].(string)
|
||||
require.Equal(t, "HALT", st)
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue