diff options
Diffstat (limited to 'main_test.go')
-rw-r--r-- | main_test.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/main_test.go b/main_test.go index 0510af8..37fe250 100644 --- a/main_test.go +++ b/main_test.go @@ -20,6 +20,8 @@ func TestSyncRejection(t *testing.T) { }{ {"invalid source", "https||:example.org/somewhere", "my.site/part/target", errSrcInvalid}, {"target no accepted", "https://example.org/somewhere", "wrong.site/tgt", errTgtNotAccepted}, + {"wrong source scheme", "ftp://example.org/somewhere", "http://my.site/part/tgt", errInvalidScheme}, + {"wrong source scheme", "http://example.org/somewhere", "ssh://my.site/part/tgt", errInvalidScheme}, } for _, tc := range tests { |