Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests when can not connect to memcaced server #54

Open
h3poteto opened this issue Dec 2, 2019 · 0 comments
Open

Add tests when can not connect to memcaced server #54

h3poteto opened this issue Dec 2, 2019 · 0 comments

Comments

@h3poteto
Copy link
Owner

h3poteto commented Dec 2, 2019

Now tests has error when memcached is not running.

  ● connection › multiple set and get › should get

    Error [ERR_UNHANDLED_ERROR]: Unhandled error. (undefined)

      27 |     return new Promise(resolve => {
      28 |       this.connection = new Connection(this.host, this.port, this.options.timeout)
    > 29 |       this.connection.on('error', () => this.emit('error'))
         |                                              ^
      30 |       this.connection.on('timeout', () => this.emit('timeout'))
      31 |       this.connection.on('connected', () => {
      32 |         this.emit('connected')

      at Connection.<anonymous> (src/memcached.ts:29:46)
      at Socket.<anonymous> (src/connection.ts:61:41)

But this message is not kindness. Please create a test case to confirm memcached server connection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant