douglascayers / sfdc-add-files-to-records-list-view-button

Lightning Component that lets users pick or upload Chatter Files to share to records selected from a List View.
https://douglascayers.com/2016/12/25/share-chatter-files-to-multiple-records-via-list-view-mass-action/
BSD 3-Clause "New" or "Revised" License
7 stars 6 forks source link

Test assertion errors deploying to Production only #3

Open JimBTek opened 7 years ago

JimBTek commented 7 years ago

No matter what I try with the Files Settings in Salesforce, I get the following 3 errors only when deploying from a Sandbox to Production via a Change Set. I also get 2 of the 3 errors when trying to deploy via the Github Deploy Tool.

I'm not sure if it could have caused any issues, but the first time I tried to deploy with the github Deploy Tool I some errors related to other tests in Production.

Change set

System.AssertException: Assertion Failed: Expected: 0, Actual: 1 Stack Trace: Class.ChatterAddFilesToRecordsControllerTest.test_attach_already_shared_files: line 188, column 1

System.AssertException: Assertion Failed: Expected: 1, Actual: 2 Stack Trace: Class.ChatterAddFilesToRecordsControllerTest.test_attach_files_to_records: line 141, column 1

System.AssertException: Assertion Failed: Expected: 1, Actual: 0 Stack Trace: Class.ChatterAddFilesToRecordsControllerTest.test_get_recently_viewed_files: line 49, column 1

GitHub Deploy Tool

Status: Completed Deployment CompleteTest failure, method: ChatterAddFilesToRecordsControllerTest.test_attach_already_shared_files -- System.AssertException: Assertion Failed: Expected: 0, Actual: 1 stack Class.ChatterAddFilesToRecordsControllerTest.test_attach_already_shared_files: line 188, column 1

Test failure, method: ChatterAddFilesToRecordsControllerTest.test_attach_files_to_records -- System.AssertException: Assertion Failed: Expected: 1, Actual: 2 stack Class.ChatterAddFilesToRecordsControllerTest.test_attach_files_to_records: line 141, column 1

JimBTek commented 7 years ago

i should mention that with the change set I limited it to just run ChatterAddFilesToRecordsControllerTest and no other tests

douglascayers commented 6 years ago

Hi @JimBTek,

I'm not sure off the top of my head. I'll need to dig in and see if I can reproduce it.

Thanks,

Doug

JimBTek commented 6 years ago

OK, i'll try in my dev org as well and let you know.

On Thu, Oct 19, 2017 at 11:32 AM, Doug Ayers notifications@github.com wrote:

Hi @JimBTek https://github.com/jimbtek,

I'm not sure off the top of my head. I'll need to dig in and see if I can reproduce it.

Thanks,

Doug

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/DouglasCAyers/sfdc-add-files-to-records-list-view-button/issues/3#issuecomment-337945703, or mute the thread https://github.com/notifications/unsubscribe-auth/ABHzG6oadAXuNL6Y80wVFCJji2CF4mXWks5st2trgaJpZM4PzNNC .