Skip to content

Commit

Permalink
chore: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nytamin committed Dec 27, 2023
1 parent 900e0cb commit dd3c4d0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
4 changes: 2 additions & 2 deletions packages/connector/src/__tests__/Profile1.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ describe('Profile 1', () => {
const messageID = getMessageId(str)
const repl = getXMLReply(messageID, xmlData.mosListAll)
resolve(encode(repl))
}, DEFAULT_TIMEOUT + 500)
}, DEFAULT_TIMEOUT + 1000)
})
})
socketMockLower.mockAddReply(mockReply)
Expand All @@ -305,6 +305,6 @@ describe('Profile 1', () => {
expect(error).toMatch(/Sent command timed out after \d+ ms/)
expect(mockReply).toHaveBeenCalledTimes(1)
},
DEFAULT_TIMEOUT + 1000
DEFAULT_TIMEOUT + 2000
)
})
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,6 @@ exports[`Profile 0 requestMachineInfo - missing <opTime> 1`] = `
</mos>"
`;
exports[`Profile 0 requestMachineInfo - opTime missing 1`] = `
"<mos>
<ncsID>their.mos.id</ncsID>
<mosID>our.mos.id</mosID>
<messageID>xx</messageID>
<reqMachInfo/>
</mos>"
`;
exports[`Profile 0 requestMachineInfo 1`] = `
"<mos>
<ncsID>their.mos.id</ncsID>
Expand Down
2 changes: 1 addition & 1 deletion packages/connector/src/__tests__/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export async function getMosConnection(profiles: IProfiles, strict: boolean): Pr

return Promise.resolve(mos)
}
export const DEFAULT_TIMEOUT = 400
export const DEFAULT_TIMEOUT = 600
export async function getMosDevice(mos: MosConnection): Promise<MosDevice> {
SocketMock.mockClear()

Expand Down

0 comments on commit dd3c4d0

Please sign in to comment.