@@ -49,9 +49,9 @@ func TestTrigger_Options(t *testing.T) {
4949 WithDeliveryTimeout (0 )(tg )
5050 So (tg .config .DeliveryTimeout , ShouldEqual , defaultDeliveryTimeout )
5151 size = rand .Intn (1000 ) + size
52- WithDeliveryTimeout (int32 (size ))(tg )
52+ WithDeliveryTimeout (uint32 (size ))(tg )
5353 So (tg .config .DeliveryTimeout , ShouldEqual , time .Duration (size )* time .Millisecond )
54- WithMaxRetryAttempts (0 )(tg )
54+ WithMaxRetryAttempts (- 1 )(tg )
5555 So (tg .config .MaxRetryAttempts , ShouldEqual , primitive .MaxRetryAttempts )
5656 size = rand .Intn (1000 ) + size
5757 WithMaxRetryAttempts (int32 (size ))(tg )
@@ -64,7 +64,7 @@ func TestTrigger_Options(t *testing.T) {
6464 WithRateLimit (0 )(tg )
6565 So (tg .config .RateLimit , ShouldEqual , 0 )
6666 size = rand .Intn (1000 ) + size
67- WithRateLimit (int32 (size ))(tg )
67+ WithRateLimit (uint32 (size ))(tg )
6868 So (tg .config .RateLimit , ShouldEqual , size )
6969 WithDeadLetterEventbus ("" )(tg )
7070 So (tg .config .DeadLetterEventbus , ShouldEqual , primitive .DeadLetterEventbusName )
@@ -220,7 +220,7 @@ func TestTriggerRateLimit(t *testing.T) {
220220 tg := NewTrigger (makeSubscription (id ), WithControllers ([]string {"test" })).(* trigger )
221221 tg .eventCli = cli
222222 cli .EXPECT ().Send (gomock .Any (), gomock .Any ()).AnyTimes ().Return (client .Success )
223- rateLimit := int32 (10000 )
223+ rateLimit := uint32 (10000 )
224224 Convey ("test no rate limit" , func () {
225225 c := testSendEvent (tg )
226226 So (c , ShouldBeGreaterThan , rateLimit )
0 commit comments