fix mod get command tests

Signed-off-by: Tihomir Jovicic <tihomir.jovicic.develop@gmail.com>
This commit is contained in:
Tihomir Jovicic 2021-08-24 11:00:24 +02:00
parent a6a6037d01
commit 90d902fa77
2 changed files with 4 additions and 4 deletions

View File

@ -60,7 +60,7 @@ func read(f io.Reader) (*file, error) {
lines := nonEmptyLines(b) lines := nonEmptyLines(b)
var requires []*require requires := make([]*require, 0, len(lines))
for _, line := range lines { for _, line := range lines {
split := strings.Split(line, " ") split := strings.Split(line, " ")
r, err := parseArgument(split[0]) r, err := parseArgument(split[0])

View File

@ -18,7 +18,7 @@ func TestClone(t *testing.T) {
require: require{ require: require{
cloneRepo: "github.com/tjovicic/dagger-modules", cloneRepo: "github.com/tjovicic/dagger-modules",
clonePath: "gcpcloudrun", clonePath: "gcpcloudrun",
version: "f4a5110b86a43871", version: "26a1d46d1b3c",
}, },
}, },
{ {
@ -34,7 +34,7 @@ func TestClone(t *testing.T) {
require: require{ require: require{
cloneRepo: "github.com/tjovicic/dagger-modules", cloneRepo: "github.com/tjovicic/dagger-modules",
clonePath: "gcpcloudrun", clonePath: "gcpcloudrun",
version: "v0.1", version: "v0.3",
}, },
}, },
{ {
@ -42,7 +42,7 @@ func TestClone(t *testing.T) {
require: require{ require: require{
cloneRepo: "github.com/dagger/test", cloneRepo: "github.com/dagger/test",
clonePath: "", clonePath: "",
version: "v0.2", version: "main",
}, },
privateKeyFile: "./test-ssh-keys/id_ed25519_test", privateKeyFile: "./test-ssh-keys/id_ed25519_test",
privateKeyPassword: "", privateKeyPassword: "",