fixed artifact test

This commit is contained in:
Ross Smith II 2013-10-05 21:15:34 -07:00 committed by Mitchell Hashimoto
parent 2cad46aa1f
commit c6392481f9
1 changed files with 2 additions and 2 deletions

View File

@ -14,8 +14,8 @@ func TestArtifact_Impl(t *testing.T) {
}
func TestArtifactString(t *testing.T) {
a := &Artifact{"packer-foobar", 42, nil}
expected := "A snapshot was created: packer-foobar"
a := &Artifact{"packer-foobar", 42, "San Francisco", 3, nil}
expected := "A snapshot was created: 'packer-foobar' in region 'San Francisco'"
if a.String() != expected {
t.Fatalf("artifact string should match: %v", expected)