8000 Update redisAppender-test.js · mKoder/log4js-node@1c0922a · GitHub
[go: up one dir, main page]

Skip to content

Commit 1c0922a

Browse files
authored
Update redisAppender-test.js
1 parent 317d68e commit 1c0922a

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

test/tap/redisAppender-test.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function setupLogging(category, options) {
2424
callback('throw redis error #1');
2525
},
2626
publish: function (channel, message, callback) {
27-
msgs.push({channel: channel, message: message});
27+
msgs.push(message);
2828
callback(null, {status: 'sent'});
2929
}
3030
};
@@ -101,8 +101,7 @@ test('log4js redisAppender', (batch) => {
101101
type: 'redis',
102102
category: 'redis',
103103
layout: {
104-
type: 'pattern',
105-
pattern: '%d{yyyy-MM-dd hh:mm:ss:SSS}#%p#%m'
104+
type: 'tester'
106105
}
107106
});
108107

@@ -125,8 +124,7 @@ test('log4js redisAppender', (batch) => {
125124
type: 'redis',
126125
category: 'redis',
127126
layout: {
128-
type: 'pattern',
129-
pattern: '%d{yyyy-MM-dd hh:mm:ss:SSS}#%p#%m'
127+
type: 'tester'
130128
}
131129
});
132130

@@ -156,8 +154,7 @@ test('log4js redisAppender', (batch) => {
156154
type: 'redis',
157155
category: 'redis',
158156
layout: {
159-
type: 'pattern',
160-
pattern: '%d{yyyy-MM-dd hh:mm:ss:SSS}#%p#%m'
157+
type: 'tester'
161158
}
162159
});
163160
setTimeout(() => {

0 commit comments

Comments
 (0)
0