Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
skudasov committed Dec 19, 2024
1 parent 43c2a4e commit fc7703e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions wasp/wasp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ func TestSmokeCustomUnitPrecision(t *testing.T) {
_, failed := gen.Run(true)
require.Equal(t, false, failed)
stats := gen.Stats()
require.GreaterOrEqual(t, stats.Success.Load(), int64(4950))
require.GreaterOrEqual(t, stats.Success.Load(), int64(4970))
require.LessOrEqual(t, stats.Success.Load(), int64(5010))
require.Equal(t, stats.Failed.Load(), int64(0))
require.Equal(t, stats.CallTimeout.Load(), int64(0))
Expand Down Expand Up @@ -676,10 +676,10 @@ func TestSmokeVUsIncrease(t *testing.T) {

okData, okResponses, failResponses := convertResponsesData(gen)
require.GreaterOrEqual(t, okResponses[0].Duration, 50*time.Millisecond)
require.GreaterOrEqual(t, len(okResponses), 147)
require.GreaterOrEqual(t, len(okData), 147)
require.GreaterOrEqual(t, len(okResponses), 140)
require.GreaterOrEqual(t, len(okData), 140)
require.Equal(t, okResponses[0].Data.(string), "successCallData")
require.Equal(t, okResponses[147].Data.(string), "successCallData")
require.Equal(t, okResponses[140].Data.(string), "successCallData")
require.Empty(t, failResponses)
require.Empty(t, gen.Errors())
}
Expand All @@ -706,10 +706,10 @@ func TestSmokeVUsDecrease(t *testing.T) {

okData, okResponses, failResponses := convertResponsesData(gen)
require.GreaterOrEqual(t, okResponses[0].Duration, 50*time.Millisecond)
require.GreaterOrEqual(t, len(okResponses), 147)
require.GreaterOrEqual(t, len(okData), 147)
require.GreaterOrEqual(t, len(okResponses), 140)
require.GreaterOrEqual(t, len(okData), 140)
require.Equal(t, okResponses[0].Data.(string), "successCallData")
require.Equal(t, okResponses[147].Data.(string), "successCallData")
require.Equal(t, okResponses[140].Data.(string), "successCallData")
require.Empty(t, failResponses)
require.Empty(t, gen.Errors())
}
Expand Down

0 comments on commit fc7703e

Please sign in to comment.