terraform: Fixing unit test

pull/616/merge
Armon Dadgar 12 years ago committed by Mitchell Hashimoto
parent ba01e27026
commit 85bb01acd7

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

Loading…
Cancel
Save