Skip to content

Commit

Permalink
Relax test assert
Browse files Browse the repository at this point in the history
  • Loading branch information
mkuratczyk committed Oct 30, 2023
1 parent 288ca1d commit 5dfc2b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/cmd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func TestPublishConsume(t *testing.T) {
}

for _, tc := range tests {
t.Run(tc.publish + "-" + tc.consume, func(t *testing.T) {
t.Run(tc.publish+"-"+tc.consume, func(t *testing.T) {
var publishProtoLabel, consumeProtoLabel string
if tc.publish == "amqp" {
publishProtoLabel = "amqp-1.0"
Expand Down Expand Up @@ -73,7 +73,7 @@ func TestLatencyCalculationNano(t *testing.T) {
latency := utils.CalculateEndToEndLatency(false, &testMsg)
// not very precise but we just care about the order of magnitude
assert.Greater(t, latency, 0.000001)
assert.Less(t, latency, 0.000100)
assert.Less(t, latency, 0.001)
}

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

0 comments on commit 5dfc2b8

Please sign in to comment.