Introduce reason for destroying runner
in order to return a specific error for OOM Killed Executions.
This commit is contained in:

committed by
Sebastian Serth

parent
b3fedf274c
commit
6a1677dea0
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user