diff --git a/test/integration/access_codes_test.go b/test/integration/access_codes_test.go index 77a46ab..6ec2afa 100644 --- a/test/integration/access_codes_test.go +++ b/test/integration/access_codes_test.go @@ -137,7 +137,8 @@ func TestAccessCodes(t *testing.T) { }, ) require.NoError(t, err) - assert.NotNil(t, deleteResponse.ActionAttempt.Success) + assert.NotNil(t, deleteResponse.ActionAttempt.ActionAttemptActionAttemptId.Status()) + assert.Equal(t, "success", deleteResponse.ActionAttempt.ActionAttemptActionAttemptId.Status()) deviceIds := make([]string, 0, len(accessCodes)) for _, accessCode := range accessCodes {