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

issue91 clearing session table after each test | Approach 'A' #106

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

karliatto
Copy link
Member

@karliatto karliatto commented Jan 22, 2017

Approach A for:

  • Modified tearDown function in 'test/manager.js' to clear sessions as suggested using 'express-session' module.

It is working ok like this, but I am not completely sure if the approach of using the global variable 'app'
instead of the declaring varibles below is better, so I will create other pull request with the other approach.

var session = require('express-session');
var MySQLStore = require('express-mysql-session')(session);
var sessionStore = new MySQLStore(app.config.db);

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

Successfully merging this pull request may close these issues.

1 participant