Skip to content

Commit

Permalink
Fixing error getting locally with new test. (#113)
Browse files Browse the repository at this point in the history
Signed-off-by: Scott Nichols <nicholss@google.com>
  • Loading branch information
n3wscott authored and markpeek committed Apr 15, 2019
1 parent 2aa95dd commit 51b1fb6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/cloudevents/transport/http/transport_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,15 @@ func TestStableConnectionsToSingleHost(t *testing.T) {
}

ctx := context.TODO()
concurrency := 200
concurrency := 64
duration := 1 * time.Second
var sent uint64
err = doConcurrently(concurrency, duration, func() error {
_, err := ceClient.Send(ctx, event)
if err != nil {
return fmt.Errorf("unexpected error sending CloudEvent %v", err.Error())
}
atomic.AddUint64(&sent, 1)
return nil
})
if err != nil {
Expand All @@ -125,4 +127,5 @@ func TestStableConnectionsToSingleHost(t *testing.T) {
if newConnectionCount > uint64(concurrency*2) {
t.Errorf("too many new connections opened: expected %d, got %d", concurrency, newConnectionCount)
}
t.Log("sent ", sent)
}

0 comments on commit 51b1fb6

Please sign in to comment.