Corrected test for findsource

Signed-off-by: Mihael Rodek <mihael.rodek1@gmail.com>
pull/10972/head
Mihael Rodek 3 years ago
parent 1c51f37104
commit f488694caf

@ -94,7 +94,7 @@ func TestVCSInstaller(t *testing.T) {
}
// Testing FindSource method, expect error because plugin code is not a cloned repository
if _, err := FindSource(i.Path()); err == nil {
if _, err := FindSource(i.Path(), ""); err == nil {
t.Fatalf("expected error for inability to find plugin source, got none")
} else if err.Error() != "cannot get information about plugin source" {
t.Fatalf("expected error for inability to find plugin source, got (%v)", err)
@ -150,7 +150,7 @@ func TestVCSInstallerUpdate(t *testing.T) {
}
// Test FindSource method for positive result
pluginInfo, err := FindSource(i.Path())
pluginInfo, err := FindSource(i.Path(), "")
if err != nil {
t.Fatal(err)
}

Loading…
Cancel
Save