Commit d8cdc88c authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/digitalocean: Make tests pass

/cc @pearkes
parent f289ddce
...@@ -144,7 +144,7 @@ func TestBuilderPrepare_ImageID(t *testing.T) { ...@@ -144,7 +144,7 @@ func TestBuilderPrepare_ImageID(t *testing.T) {
t.Fatalf("should not have error: %s", err) t.Fatalf("should not have error: %s", err)
} }
if b.config.SizeID != 2676 { if b.config.SizeID != 66 {
t.Errorf("invalid: %d", b.config.SizeID) t.Errorf("invalid: %d", b.config.SizeID)
} }
...@@ -176,15 +176,15 @@ func TestBuilderPrepare_SSHUsername(t *testing.T) { ...@@ -176,15 +176,15 @@ func TestBuilderPrepare_SSHUsername(t *testing.T) {
} }
// Test set // Test set
config["ssh_username"] = "" config["ssh_username"] = "foo"
b = Builder{} b = Builder{}
err = b.Prepare(config) err = b.Prepare(config)
if err != nil { if err != nil {
t.Fatalf("should not have error: %s", err) t.Fatalf("should not have error: %s", err)
} }
if b.config.SSHPort != 35 { if b.config.SSHUsername != "foo" {
t.Errorf("invalid: %d", b.config.SSHPort) t.Errorf("invalid: %s", b.config.SSHUsername)
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment