@@ -70,25 +70,25 @@ func Test_CollectionShards(t *testing.T) {
70
70
assert .Equal (t , col .Name (), shards .Name )
71
71
assert .NotEmpty (t , shards .Status )
72
72
assert .Equal (t , arangodb .CollectionTypeDocument , shards .Type )
73
- assert .Equal (t , false , shards .IsSystem )
74
- assert .NotEmpty (t , shards .GloballyUniqueId )
75
- assert .Equal (t , false , shards .CacheEnabled )
76
- assert .Equal (t , false , shards .IsSmart )
73
+ assert .Equal (t , false , * shards .IsSystem )
74
+ assert .NotEmpty (t , * shards .GloballyUniqueId )
75
+ assert .Equal (t , false , * shards .CacheEnabled )
76
+ assert .Equal (t , false , * shards .IsSmart )
77
77
assert .Equal (t , arangodb .KeyGeneratorTraditional , shards .KeyOptions .Type )
78
- assert .Equal (t , true , shards .KeyOptions .AllowUserKeys )
79
- assert .Equal (t , 2 , shards .NumberOfShards )
78
+ assert .Equal (t , true , * shards .KeyOptions .AllowUserKeys )
79
+ assert .Equal (t , 2 , * shards .NumberOfShards )
80
80
assert .Equal (t , arangodb .ShardingStrategyHash , shards .ShardingStrategy )
81
- assert .Equal (t , []string {"_key" }, shards .ShardKeys )
81
+ assert .Equal (t , []string {"_key" }, * shards .ShardKeys )
82
82
require .Len (t , shards .Shards , 2 , "expected 2 shards" )
83
83
var leaders []arangodb.ServerID
84
84
for _ , dbServers := range shards .Shards {
85
85
require .Lenf (t , dbServers , 2 , "expected 2 DB servers for the shard" )
86
86
leaders = append (leaders , dbServers [0 ])
87
87
}
88
88
assert .NotEqualf (t , leaders [0 ], leaders [1 ], "the leader shard can not be on the same server" )
89
- assert .Equal (t , rf , shards .ReplicationFactor )
90
- assert .Equal (t , false , shards .WaitForSync )
91
- assert .Equal (t , 1 , shards .WriteConcern )
89
+ assert .Equal (t , rf , * shards .ReplicationFactor )
90
+ assert .Equal (t , false , * shards .WaitForSync )
91
+ assert .Equal (t , 1 , * shards .WriteConcern )
92
92
})
93
93
94
94
version , err := client .Version (context .Background ())
0 commit comments