diff options
author | pg9182 <96569817+pg9182@users.noreply.github.com> | 2022-10-19 06:08:10 -0400 |
---|---|---|
committer | pg9182 <96569817+pg9182@users.noreply.github.com> | 2022-10-19 06:08:10 -0400 |
commit | 6b0d487368262d396571ae5d103046403538cc08 (patch) | |
tree | f836b4a56a58736e8ef1c583547028388762e255 /pkg | |
parent | d7b970116a444eb0b8f26ab131ddeb501ad5ec63 (diff) | |
download | Atlas-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')
-rw-r--r-- | pkg/api/api0/api0testutil/storage.go | 4 |
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{} |