Skip to content

Commit

Permalink
fix: use get property instead of method to retrieve current frameMax …
Browse files Browse the repository at this point in the history
…value in connection
  • Loading branch information
icappello committed Dec 19, 2023
1 parent 3119548 commit b3991d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ export class Connection {
return this.consumers.size
}

public savedFrameMax() {
public get currentFrameMax() {
return this.frameMax
}

Expand Down
4 changes: 2 additions & 2 deletions test/e2e/connect_frame_size_negotiation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe("connect frame size negotiation", () => {
const connection = await createConnection(username, password, undefined, frameMax)

await eventually(async () => {
expect(connection.savedFrameMax()).lte(frameMax)
expect(connection.currentFrameMax).lte(frameMax)
expect(await rabbit.getConnections()).lengthOf(1)
}, 5000)
try {
Expand All @@ -27,7 +27,7 @@ describe("connect frame size negotiation", () => {
const connection = await createConnection(username, password, undefined, frameMax)

await eventually(async () => {
expect(connection.savedFrameMax()).lte(frameMax)
expect(connection.currentFrameMax).lte(frameMax)
expect(await rabbit.getConnections()).lengthOf(1)
}, 5000)
try {
Expand Down

0 comments on commit b3991d8

Please sign in to comment.