Skip to content

Instantly share code, notes, and snippets.

@spirosoik
Last active February 26, 2021 12:54
Show Gist options
  • Save spirosoik/7eb588c7ac28965b671f26de59f836a0 to your computer and use it in GitHub Desktop.
Save spirosoik/7eb588c7ac28965b671f26de59f836a0 to your computer and use it in GitHub Desktop.
func (s *eventTestSuite) signup() *eventTestSuite {
s.crmClient.createLead = func(req pardot.LeadRequest) (int64, error) {
return s.crmID, nil
}
s.err = s.eventHandler.HandleEvent(context.Background(), testutil.EventToSQSEvent(leads.LeadCreateEvent{
Owner: s.username,
URN: s.userURN,
CreatedAt: time.Now(),
}))
return s
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment