diff options
Diffstat (limited to 'rpc/args_test.go')
-rw-r--r-- | rpc/args_test.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/rpc/args_test.go b/rpc/args_test.go index f5949b7a2..09ce12467 100644 --- a/rpc/args_test.go +++ b/rpc/args_test.go @@ -2494,3 +2494,13 @@ func TestBlockHeightFromJsonInvalid(t *testing.T) { t.Error(str) } } + +func TestSourceArgsEmpty(t *testing.T) { + input := `[]` + + args := new(SourceArgs) + str := ExpectInsufficientParamsError(json.Unmarshal([]byte(input), &args)) + if len(str) > 0 { + t.Error(str) + } +} |