Hey! Does anyone understand how the autogeneration...
# kolide
t
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
z
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.