Skip to content

Commit 0b1365e

Browse files
committed
Fix test
1 parent 8d93ff5 commit 0b1365e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

runner_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,20 @@ func TestVersion(t *testing.T) {
4141

4242
type testParser struct{}
4343

44-
func (t *testParser) Encode(ctx context.Context, input string) (output string, outputIsError bool, err error) {
44+
func (t *testParser) Encode(ctx context.Context, input string) (pid int, output string, outputIsError bool, err error) {
4545
switch input {
4646
case `a=1`:
47-
return `{"a": {"type":"integer","value":"1"}}`, false, nil
47+
return 42, `{"a": {"type":"integer","value":"1"}}`, false, nil
4848
case `a=`, `c=`:
49-
return `oh noes: error one`, true, nil
49+
return 42, `oh noes: error one`, true, nil
5050
case `b=`:
51-
return `error two`, true, nil
51+
return 42, `error two`, true, nil
5252
default:
5353
panic(fmt.Sprintf("unreachable: %q", input))
5454
}
5555
}
5656

57-
func (t testParser) Decode(ctx context.Context, input string) (string, bool, error) {
57+
func (t testParser) Decode(ctx context.Context, input string) (int, string, bool, error) {
5858
return t.Encode(ctx, input)
5959
}
6060

0 commit comments

Comments
 (0)