terraform: Fixing unit test

This commit is contained in:
Armon Dadgar 2014-12-03 18:35:58 -08:00 committed by Mitchell Hashimoto
parent ba01e27026
commit 85bb01acd7
1 changed files with 3 additions and 3 deletions

View File

@ -215,7 +215,7 @@ func TestReadWriteState(t *testing.T) {
} }
// Verify that the version and serial are set // Verify that the version and serial are set
if state.Version != textStateVersion { if state.Version != StateVersion {
t.Fatalf("bad version number: %d", state.Version) t.Fatalf("bad version number: %d", state.Version)
} }
@ -240,7 +240,7 @@ func TestReadWriteState(t *testing.T) {
} }
// Verify the changes came through // Verify the changes came through
state.Version = textStateVersion state.Version = StateVersion
state.Serial = 10 state.Serial = 10
// ReadState should not restore sensitive information! // ReadState should not restore sensitive information!
@ -257,7 +257,7 @@ func TestReadStateNewVersion(t *testing.T) {
Version int Version int
} }
buf, err := json.Marshal(&out{textStateVersion + 1}) buf, err := json.Marshal(&out{StateVersion + 1})
if err != nil { if err != nil {
t.Fatalf("err: %v", err) t.Fatalf("err: %v", err)
} }