missing commits from 19688

This commit is contained in:
James Bardin 2018-12-18 19:06:49 -05:00 committed by Martin Atkins
parent bbaa8af4f7
commit 149ccd929e
3 changed files with 5 additions and 5 deletions

View File

@ -729,7 +729,7 @@ func testBackendState(t *testing.T, s *terraform.State, c int) (*terraform.State
state.Backend = &terraform.BackendState{
Type: "http",
ConfigRaw: json.RawMessage(fmt.Sprintf(`{"address":%q}`, srv.URL)),
Hash: hash,
Hash: uint64(hash),
}
return state, srv

View File

@ -470,7 +470,7 @@ func TestInit_backendReinitWithExtra(t *testing.T) {
t.Errorf("wrong config\ngot: %s\nwant: %s", got, want)
}
if state.Backend.Hash != cHash {
if state.Backend.Hash != uint64(cHash) {
t.Fatal("mismatched state and config backend hashes")
}
@ -482,7 +482,7 @@ func TestInit_backendReinitWithExtra(t *testing.T) {
if got, want := normalizeJSON(t, state.Backend.ConfigRaw), `{"path":"hello","workspace_dir":null}`; got != want {
t.Errorf("wrong config\ngot: %s\nwant: %s", got, want)
}
if state.Backend.Hash != cHash {
if state.Backend.Hash != uint64(cHash) {
t.Fatal("mismatched state and config backend hashes")
}
}

View File

@ -1750,7 +1750,7 @@ func TestMetaBackend_configureWithExtra(t *testing.T) {
// Check the state
s := testDataStateRead(t, filepath.Join(DefaultDataDir, backendLocal.DefaultStateFilename))
if s.Backend.Hash != cHash {
if s.Backend.Hash != uint64(cHash) {
t.Fatal("mismatched state and config backend hashes")
}
@ -1766,7 +1766,7 @@ func TestMetaBackend_configureWithExtra(t *testing.T) {
// Check the state
s = testDataStateRead(t, filepath.Join(DefaultDataDir, backendLocal.DefaultStateFilename))
if s.Backend.Hash != cHash {
if s.Backend.Hash != uint64(cHash) {
t.Fatal("mismatched state and config backend hashes")
}
}