Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions loadgen/workload/stream_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ func TestReadWriteWithValue(t *testing.T) {

func TestGenTxWithRateLimit(t *testing.T) {
t.Parallel()
p := DefaultProfile(8)
p := DefaultProfile(1)
limit := 1000
expectedSeconds := 5
producedTotal := expectedSeconds * limit
Expand All @@ -385,7 +385,7 @@ func TestGenTxWithRateLimit(t *testing.T) {
start := time.Now()
g.NextN(t.Context(), producedTotal)
duration := time.Since(start)
require.InDelta(t, float64(expectedSeconds), duration.Seconds(), 0.1)
require.InDelta(t, float64(expectedSeconds), duration.Seconds(), 0.1*float64(expectedSeconds))
}

// modGenTester simulates querying the version from the query service.
Expand Down