builder/digitalocean: Make tests pass

/cc @pearkes
pull/17/head
Mitchell Hashimoto 13 years ago
parent ba1c7101c5
commit 793877568f

@ -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) {
} }
// 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)
} }
} }

Loading…
Cancel
Save