Skip to content

Commit

Permalink
test: show set returns false if it fails
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbetz committed Nov 23, 2024
1 parent f73c2b7 commit 6f614db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions __tests__/pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ describe( 'pool', () => {

it( 'should return false if no hosts exist', async () => {
const pool = new Pool( 12345, 'invalid-host' );
expect( await pool.set( 'test', 'test' ) ).toBe( false );
expect( pool.get( 'invalid-host' ) ).resolves.toBe( false );
await pool.end();
} );
Expand Down

0 comments on commit 6f614db

Please sign in to comment.