Apply suggestions from code review
Co-Authored-By: preetapan <preetha@hashicorp.com>
This commit is contained in:
parent
7bd1440710
commit
dbf4c3a3c8
|
@ -1977,7 +1977,7 @@ func makeFailedAlloc(add *structs.Allocation, err error) *structs.Allocation {
|
|||
stripped.ID = add.ID
|
||||
stripped.NodeID = add.NodeID
|
||||
stripped.ClientStatus = structs.AllocClientStatusFailed
|
||||
stripped.ClientDescription = fmt.Sprintf("Unable to add allocation due to err: %v", err)
|
||||
stripped.ClientDescription = fmt.Sprintf("Unable to add allocation due to error: %v", err)
|
||||
|
||||
// Copy task states if it exists in the original allocation
|
||||
if add.TaskStates != nil {
|
||||
|
|
|
@ -720,7 +720,7 @@ func TestClient_RestoreError(t *testing.T) {
|
|||
}
|
||||
return true, nil
|
||||
}, func(err error) {
|
||||
t.Fatalf("err: %v", err)
|
||||
require.NoError(err)
|
||||
})
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue