Introduce reason for destroying runner

in order to return a specific error for OOM Killed Executions.
This commit is contained in:
Maximilian Paß
2023-06-28 18:24:50 +01:00
committed by Sebastian Serth
parent b3fedf274c
commit 6a1677dea0
15 changed files with 186 additions and 56 deletions

View File

@ -147,7 +147,8 @@ func TestAWSFunctionWorkload_Destroy(t *testing.T) {
})
require.NoError(t, err)
err = r.Destroy(false)
var reason error
err = r.Destroy(reason)
assert.NoError(t, err)
assert.True(t, hasDestroyBeenCalled)
}