diff --git a/internal/providers/aws/crypto/compare_test.go b/internal/providers/aws/crypto/compare_test.go index 9fce672b7c..38cb97a41b 100644 --- a/internal/providers/aws/crypto/compare_test.go +++ b/internal/providers/aws/crypto/compare_test.go @@ -36,9 +36,9 @@ func TestConstantTimeByteCompare(t *testing.T) { } func BenchmarkConstantTimeCompare(b *testing.B) { - x, y := big.NewInt(1023), big.NewInt(1024) + x, y := big.NewInt(1023).Bytes(), big.NewInt(1024).Bytes() for b.Loop() { - _, _ = ConstantTimeByteCompare(x.Bytes(), y.Bytes()) + _, _ = ConstantTimeByteCompare(x, y) } } diff --git a/internal/semver/semver_test.go b/internal/semver/semver_test.go index b49b2c6339..fbf0268c89 100644 --- a/internal/semver/semver_test.go +++ b/internal/semver/semver_test.go @@ -33,18 +33,6 @@ type ( var ( fixtures = []fixture{ - {"0.0.0", "0.0.0-foo"}, - {"0.0.1", "0.0.0"}, - {"1.0.0", "0.9.9"}, - {"0.10.0", "0.9.0"}, - {"0.99.0", "0.10.0"}, - {"2.0.0", "1.2.3"}, - {"0.0.0", "0.0.0-foo"}, - {"0.0.1", "0.0.0"}, - {"1.0.0", "0.9.9"}, - {"0.10.0", "0.9.0"}, - {"0.99.0", "0.10.0"}, - {"2.0.0", "1.2.3"}, {"0.0.0", "0.0.0-foo"}, {"0.0.1", "0.0.0"}, {"1.0.0", "0.9.9"},