From d6c02f5aeba170f9c036695c4aeca82c11dad8fe Mon Sep 17 00:00:00 2001 From: Chris Bednarski Date: Thu, 21 Jan 2016 11:29:39 -0800 Subject: [PATCH] Change test to use something that looks like a real region code --- builder/digitalocean/artifact_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/builder/digitalocean/artifact_test.go b/builder/digitalocean/artifact_test.go index d8523154d..5646be0be 100644 --- a/builder/digitalocean/artifact_test.go +++ b/builder/digitalocean/artifact_test.go @@ -15,8 +15,8 @@ func TestArtifact_Impl(t *testing.T) { } func TestArtifactId(t *testing.T) { - a := &Artifact{"packer-foobar", 42, "San Francisco", nil} - expected := "San Francisco:42" + a := &Artifact{"packer-foobar", 42, "sfo", nil} + expected := "sfo:42" if a.Id() != expected { t.Fatalf("artifact ID should match: %v", expected) @@ -24,8 +24,8 @@ func TestArtifactId(t *testing.T) { } func TestArtifactString(t *testing.T) { - a := &Artifact{"packer-foobar", 42, "San Francisco", nil} - expected := "A snapshot was created: 'packer-foobar' (ID: 42) in region 'San Francisco'" + a := &Artifact{"packer-foobar", 42, "sfo", nil} + expected := "A snapshot was created: 'packer-foobar' (ID: 42) in region 'sfo'" if a.String() != expected { t.Fatalf("artifact string should match: %v", expected)