aboutsummaryrefslogtreecommitdiff
path: root/pkg/api
diff options
context:
space:
mode:
authorpg9182 <96569817+pg9182@users.noreply.github.com>2022-10-19 06:08:10 -0400
committerpg9182 <96569817+pg9182@users.noreply.github.com>2022-10-19 06:08:10 -0400
commit6b0d487368262d396571ae5d103046403538cc08 (patch)
treef836b4a56a58736e8ef1c583547028388762e255 /pkg/api
parentd7b970116a444eb0b8f26ab131ddeb501ad5ec63 (diff)
downloadAtlas-6b0d487368262d396571ae5d103046403538cc08.tar.gz
Atlas-6b0d487368262d396571ae5d103046403538cc08.zip
pkg/api/api0/api0testutil: Don't require the high uint64 bit to be supported
We don't see it, and it's not supported by many databases.
Diffstat (limited to 'pkg/api')
-rw-r--r--pkg/api/api0/api0testutil/storage.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/api/api0/api0testutil/storage.go b/pkg/api/api0/api0testutil/storage.go
index b87650a..c8c96af 100644
--- a/pkg/api/api0/api0testutil/storage.go
+++ b/pkg/api/api0/api0testutil/storage.go
@@ -24,7 +24,7 @@ func TestAccountStorage(t *testing.T, s api0.AccountStorage) {
// test basic functionality
{
uid0 := uint64(999999)
- uid1 := uint64(math.MaxUint64)
+ uid1 := uint64(math.MaxUint64 >> 1)
act0 := &api0.Account{
UID: uid0,
Username: "act0",
@@ -322,7 +322,7 @@ func TestAccountStorage(t *testing.T, s api0.AccountStorage) {
func TestPdataStorage(t *testing.T, s api0.PdataStorage) {
// test basic functionality
{
- user1 := uint64(math.MaxUint64) // to ensure the full uid range is supported
+ user1 := uint64(math.MaxUint64 >> 1) // to ensure the full uid range is supported
pdata1 := seqBytes(56306, 0)
pdata2 := seqBytes(56306, 6)
zeroSHA := [sha256.Size]byte{}