Skip to content

Commit b43e379

Browse files
committed
Fix broken test
1 parent 7a90bdb commit b43e379

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/unit/client.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ test('user agent is in the correct format', t => {
461461
const client = new Client({ node: 'http://localhost:9200' })
462462
const agentRaw = client.transport[symbols.kHeaders]['user-agent'] || ''
463463
const agentSplit = agentRaw.split(/\s+/)
464-
t.equal(agentSplit[0].split('/')[0], 'elasticsearch-js')
464+
t.equal(agentSplit[0].split('/')[0], 'elasticsearch-serverless-js')
465465
t.ok(/^\d+\.\d+\.\d+/.test(agentSplit[0].split('/')[1]))
466466
t.end()
467467
})

0 commit comments

Comments
 (0)