Skip to content

Commit

Permalink
lower threshold more.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdurham committed Oct 8, 2024
1 parent e1aaa9f commit 38b15a1
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,21 +84,21 @@ func TestUpdatingConfig(t *testing.T) {
cc2 := types.ConnectionConfig{
URL: svr.URL,
Timeout: 5 * time.Second,
BatchCount: 100,
BatchCount: 20,
FlushFrequency: 1 * time.Second,
Connections: 4,
}

err = wr.UpdateConfig(context.Background(), cc2)
require.NoError(t, err)
for i := 0; i < 1_000; i++ {
for i := 0; i < 100; i++ {
send(t, wr, ctx)
}
require.Eventuallyf(t, func() bool {
return recordsFound.Load() == 1_000
}, 15*time.Second, 1*time.Second, "record count should be 1000 but is %d", recordsFound.Load())
return recordsFound.Load() == 100
}, 15*time.Second, 1*time.Second, "record count should be 100 but is %d", recordsFound.Load())

require.Truef(t, lastBatchSize.Load() == 100, "batch_count should be 100 but is %d", lastBatchSize.Load())
require.Truef(t, lastBatchSize.Load() == 20, "batch_count should be 20 but is %d", lastBatchSize.Load())
}

func TestRetry(t *testing.T) {
Expand Down

0 comments on commit 38b15a1

Please sign in to comment.