Skip to content
This repository was archived by the owner on Dec 17, 2021. It is now read-only.

Commit 4b07730

Browse files
committed
commands/create: Update tests for lambda-machine-local changes
1 parent ac4ddea commit 4b07730

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

commands/create_test.go

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,11 @@ import (
44
"testing"
55

66
"flag"
7-
"github.com/docker/machine/commands/commandstest"
87
"github.com/docker/machine/libmachine/mcnflag"
8+
"github.com/lambda-linux/lambda-machine-local/commands/commandstest"
99
"github.com/stretchr/testify/assert"
1010
)
1111

12-
func TestValidateSwarmDiscoveryErrorsGivenInvalidURL(t *testing.T) {
13-
err := validateSwarmDiscovery("foo")
14-
assert.Error(t, err)
15-
}
16-
17-
func TestValidateSwarmDiscoveryAcceptsEmptyString(t *testing.T) {
18-
err := validateSwarmDiscovery("")
19-
assert.NoError(t, err)
20-
}
21-
22-
func TestValidateSwarmDiscoveryAcceptsValidFormat(t *testing.T) {
23-
err := validateSwarmDiscovery("token://deadbeefcafe")
24-
assert.NoError(t, err)
25-
}
26-
2712
type fakeFlagGetter struct {
2813
flag.Value
2914
value interface{}

0 commit comments

Comments
 (0)