Title
#kolide
t

TheHellaJeff

11/26/2019, 5:18 PM
Hey! Does anyone understand how the autogeneration of mocks work in fleet? I’m trying to fix an issue with my PR that is causing a
panic: runtime error: invalid memory address or nil pointer dereference
when the test
TestNewDistributedQueryCampaign
is run
zwass

zwass

11/26/2019, 7:12 PM
Ah yeah so after you generate the mock you need to actually set a mock function for any function that would be called in a test. Your changes effect the creation of new live queries so you need to upate that test.