You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
test fixup
This commit is contained in:
@@ -1,20 +1,20 @@
|
||||
// Spawned by the goodStacks.spec.js tests
|
||||
'use strict'
|
||||
|
||||
var assert = require('assert')
|
||||
var redis = require('../../index')
|
||||
var client = redis.createClient()
|
||||
const assert = require('assert')
|
||||
const redis = require('../../index')
|
||||
const client = redis.createClient()
|
||||
|
||||
// Both error cases would normally return bad stack traces
|
||||
client.set('foo', function (err, res) {
|
||||
client.set('foo', (err, res) => {
|
||||
assert(/good-traces.js:9:8/.test(err.stack))
|
||||
client.set('foo', 'bar', function (err, res) {
|
||||
client.set('foo', 'bar', (err, res) => {
|
||||
assert(/good-traces.js:11:10/.test(err.stack))
|
||||
client.quit(function () {
|
||||
client.quit(() => {
|
||||
process.exit(0)
|
||||
})
|
||||
})
|
||||
process.nextTick(function () {
|
||||
process.nextTick(() => {
|
||||
client.stream.destroy()
|
||||
})
|
||||
})
|
||||
|
Reference in New Issue
Block a user