Skip to content

Commit 0ed8e89

Browse files
committed
Switched method to command to match schema
1 parent 20631b0 commit 0ed8e89

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

internal/execution/supervisor/adapter_file.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ func (a *fileAdapter) Send(
117117
}()
118118

119119
message := map[string]any{
120-
"method": method,
121-
"params": data,
120+
"command": method,
121+
"params": data,
122122
}
123123

124124
// write message to request file

internal/execution/supervisor/adapter_file_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func TestFileAdapter_Send(t *testing.T) {
6868

6969
res, err := a.Send(ctx, "test", data, 10)
7070
assert.NoError(t, err)
71-
assert.Equal(t, map[string]any{"method": "test", "params": data}, res)
71+
assert.Equal(t, map[string]any{"command": "test", "params": data}, res)
7272

7373
// check that the request and response files were cleaned up
7474
_, err = os.Stat(requestFileName)

0 commit comments

Comments
 (0)