Skip to content

Commit 465e654

Browse files
authored
Merge pull request #6640 from dankrzeminski32/fix-redundant-ifelse-in-ruler-test
remove redundant if else block in `ruler_test.go`
2 parents 8508125 + 0743cc6 commit 465e654

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pkg/ruler/ruler_test.go

+1-5
Original file line numberDiff line numberDiff line change
@@ -1360,11 +1360,7 @@ func TestGetRules(t *testing.T) {
13601360
if tc.sharding {
13611361
mockPoolClient := r.clientsPool.(*mockRulerClientsPool)
13621362

1363-
if tc.shardingStrategy == util.ShardingStrategyShuffle {
1364-
require.Equal(t, int32(tc.expectedClientCallCount), mockPoolClient.numberOfCalls.Load())
1365-
} else {
1366-
require.Equal(t, int32(tc.expectedClientCallCount), mockPoolClient.numberOfCalls.Load())
1367-
}
1363+
require.Equal(t, int32(tc.expectedClientCallCount), mockPoolClient.numberOfCalls.Load())
13681364
mockPoolClient.numberOfCalls.Store(0)
13691365
}
13701366
})

0 commit comments

Comments
 (0)