From 29faa70683d8f86783b14b0040a80d6b5a4845df Mon Sep 17 00:00:00 2001 From: Yuce Tekol Date: Mon, 21 Aug 2023 23:28:36 +0300 Subject: [PATCH] Skip some tests for older Hazelcast servers --- atomic_long_it_test.go | 1 + .../serialization/internal_serialization_methods_it_test.go | 2 ++ 2 files changed, 3 insertions(+) diff --git a/atomic_long_it_test.go b/atomic_long_it_test.go index 71f46faa3..238a49253 100644 --- a/atomic_long_it_test.go +++ b/atomic_long_it_test.go @@ -32,6 +32,7 @@ import ( func TestAtomicLong(t *testing.T) { skip.If(t, "enterprise") + skip.If(t, "hz < 5") testCases := []struct { name string f func(t *testing.T) diff --git a/internal/serialization/internal_serialization_methods_it_test.go b/internal/serialization/internal_serialization_methods_it_test.go index 28c8925cd..441ff346b 100644 --- a/internal/serialization/internal_serialization_methods_it_test.go +++ b/internal/serialization/internal_serialization_methods_it_test.go @@ -29,6 +29,7 @@ import ( "github.com/hazelcast/hazelcast-go-client" "github.com/hazelcast/hazelcast-go-client/internal/it" + "github.com/hazelcast/hazelcast-go-client/internal/it/skip" iserialization "github.com/hazelcast/hazelcast-go-client/internal/serialization" "github.com/hazelcast/hazelcast-go-client/serialization" ) @@ -48,6 +49,7 @@ func TestInternalSerializationMethods(t *testing.T) { } func defaultCompactSerializerTest(t *testing.T) { + skip.If(t, "hz < 5.1") var sc serialization.Config sc.Compact.SetSerializers(FooCompactSerializer{}) tcx := it.MapTestContext{