The Firehose service can take a max batch size of 500. While created the example the need for finer grained configuration was necessary.
17 lines
293 B
Go
17 lines
293 B
Go
package connector
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/bmizerany/assert"
|
|
)
|
|
|
|
func Test_Set(t *testing.T) {
|
|
defaultMaxBatchCount := 1000
|
|
assert.Equal(t, maxBatchCount, defaultMaxBatchCount)
|
|
|
|
c := NewConsumer("app", "stream")
|
|
c.Set("maxBatchCount", 100)
|
|
|
|
assert.Equal(t, maxBatchCount, 100)
|
|
}
|