Skip to content

Instantly share code, notes, and snippets.

@alanf
Created April 10, 2017 17:40
Show Gist options
  • Save alanf/7a466b4744ba4cb01e35a81ef82cb932 to your computer and use it in GitHub Desktop.
Save alanf/7a466b4744ba4cb01e35a81ef82cb932 to your computer and use it in GitHub Desktop.
class FakeRecorder: AWSFirehoseRecorder {
var testRecords: [Data] = []
override func saveRecord(_ data: Data!, streamName: String!) -> AWSTask<AnyObject>! {
testRecords.append(data)
return AWSTask()
}
override func submitAllRecords() -> AWSTask<AnyObject>! {
return AWSTask()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment