Skip to content

Commit

Permalink
test/connection/inbound-parser: remove unused vars (#3245)
Browse files Browse the repository at this point in the history
Co-authored-by: alxndrsn <alxndrsn>
  • Loading branch information
alxndrsn authored Jun 5, 2024
1 parent d650741 commit a24a24d
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions packages/pg/test/unit/connection/inbound-parser-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ require('./test-helper')
const BufferList = require('../../buffer-list')
var Connection = require('../../../lib/connection')
var buffers = require('../../test-buffers')
var PARSE = function (buffer) {
return new Parser(buffer).parse()
}

var authOkBuffer = buffers.authenticationOk()
var paramStatusBuffer = buffers.parameterStatus('client_encoding', 'UTF8')
Expand All @@ -16,17 +13,6 @@ var parseCompleteBuffer = buffers.parseComplete()
var bindCompleteBuffer = buffers.bindComplete()
var portalSuspendedBuffer = buffers.portalSuspended()

var addRow = function (bufferList, name, offset) {
return bufferList
.addCString(name) // field name
.addInt32(offset++) // table id
.addInt16(offset++) // attribute of column number
.addInt32(offset++) // objectId of field's data type
.addInt16(offset++) // datatype size
.addInt32(offset++) // type modifier
.addInt16(0) // format code, 0 => text
}

var row1 = {
name: 'id',
tableID: 1,
Expand Down Expand Up @@ -289,7 +275,7 @@ test('Connection', function () {

test('error messages', function () {
test('with no fields', function () {
var msg = testForMessage(buffers.error(), {
testForMessage(buffers.error(), {
name: 'error',
})
})
Expand Down

0 comments on commit a24a24d

Please sign in to comment.