Skip to content

Commit 948abb0

Browse files
committed
Merge pull request #1131 from stephenplusplus/spp--logging-system-test
logging: test fetching log-specific entries
2 parents 531f221 + f509669 commit 948abb0

1 file changed

Lines changed: 24 additions & 1 deletion

File tree

system-test/logging.js

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,14 +335,37 @@ describe('Logging', function() {
335335
});
336336

337337
it('should list log entries as a stream', function(done) {
338-
log.getEntries({ pageSize: 1 })
338+
logging.getEntries({ pageSize: 1 })
339339
.on('error', done)
340340
.once('data', function() {
341341
this.end();
342342
done();
343343
});
344344
});
345345

346+
describe('log-specific entries', function() {
347+
before(function(done) {
348+
log.write(logEntries, options, done);
349+
});
350+
351+
it('should list log entries', function(done) {
352+
log.getEntries({ pageSize: 1 }, function(err, entries) {
353+
assert.ifError(err);
354+
assert.strictEqual(entries.length, 1);
355+
done();
356+
});
357+
});
358+
359+
it('should list log entries as a stream', function(done) {
360+
log.getEntries({ pageSize: 1 })
361+
.on('error', done)
362+
.once('data', function() {
363+
this.end();
364+
done();
365+
});
366+
});
367+
});
368+
346369
it('should write to a log', function(done) {
347370
log.write(logEntries, options, done);
348371
});

0 commit comments

Comments
 (0)