builder/digitalocean: Make tests pass

/cc @pearkes
This commit is contained in:
Mitchell Hashimoto 2013-06-15 11:11:03 -07:00
parent f289ddce60
commit d8cdc88cbe
1 changed files with 4 additions and 4 deletions

View File

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