Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/cmap/handshake/client_metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export async function makeClientMetadata(
// Note: order matters, os.type is last so it will be removed last if we're at maxSize
const osInfo = new Map()
.set('name', process.platform)
.set('architecture', process.arch)
.set('architecture', os.arch())
.set('version', os.release())
.set('type', os.type());

Expand Down
10 changes: 5 additions & 5 deletions test/unit/cmap/handshake/client_metadata.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ describe('client metadata module', () => {
os: {
type: os.type(),
name: process.platform,
architecture: process.arch,
architecture: os.arch(),
version: os.release()
},
platform: `Node.js ${process.version}, ${os.endianness()}`
Expand All @@ -180,7 +180,7 @@ describe('client metadata module', () => {
os: {
type: os.type(),
name: process.platform,
architecture: process.arch,
architecture: os.arch(),
version: os.release()
},
platform: `Node.js ${process.version}, ${os.endianness()}|myPlatform`
Expand All @@ -204,7 +204,7 @@ describe('client metadata module', () => {
os: {
type: os.type(),
name: process.platform,
architecture: process.arch,
architecture: os.arch(),
version: os.release()
},
platform: `Node.js ${process.version}, ${os.endianness()}`
Expand All @@ -230,7 +230,7 @@ describe('client metadata module', () => {
os: {
type: os.type(),
name: process.platform,
architecture: process.arch,
architecture: os.arch(),
version: os.release()
},
platform: `Node.js ${process.version}, ${os.endianness()}`
Expand All @@ -249,7 +249,7 @@ describe('client metadata module', () => {
os: {
type: os.type(),
name: process.platform,
architecture: process.arch,
architecture: os.arch(),
version: os.release()
},
platform: `Node.js ${process.version}, ${os.endianness()}`
Expand Down