Skip to content

Commit 2554bc6

Browse files
committed
[test] rename test case another demo to 1266-snapshot-crash-start under snapshot test case.
1 parent 0216a88 commit 2554bc6

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

tests/automatic_tests/snapshot/mocha_test.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ describe('snapshot', function() {
6666
})
6767
})
6868

69-
describe('another demo should work fine', function() {
69+
describe('1266-snapshot-crash-start', function() {
7070
before(function(done) {
7171
cp.execFile(snapshotPath,
7272
['--extra_code', 'file_to_snapshot_to_app.bin.js', 'app.bin'],
73-
{cwd:'./' + global.tests_dir + '/snapshot/test-snapshot-app/'},
73+
{cwd:'./' + global.tests_dir + '/snapshot/1266-snapshot-crash-start/'},
7474
function (error, stdout, stderr) {
7575
done();
7676
}
@@ -79,18 +79,18 @@ describe('snapshot', function() {
7979
})
8080

8181
after(function() {
82-
fs.unlink(path.join(global.tests_dir, 'snapshot','test-snapshot-app', 'app.bin'), function(err) {if(err && err.code !== 'ENOENT') throw err});
83-
fs.unlink(path.join(global.tests_dir, 'snapshot','test-snapshot-app', 'v8.log'), function(err) {if(err && err.code !== 'ENOENT') throw err});
84-
fs.unlink(path.join(global.tests_dir, 'snapshot','test-snapshot-app','tmp'), function(err) {if(err && err.code !== 'ENOENT') throw err});
82+
fs.unlink(path.join(global.tests_dir, 'snapshot','1266-snapshot-crash-start', 'app.bin'), function(err) {if(err && err.code !== 'ENOENT') throw err});
83+
fs.unlink(path.join(global.tests_dir, 'snapshot','1266-snapshot-crash-start', 'v8.log'), function(err) {if(err && err.code !== 'ENOENT') throw err});
84+
fs.unlink(path.join(global.tests_dir, 'snapshot','1266-snapshot-crash-start','tmp'), function(err) {if(err && err.code !== 'ENOENT') throw err});
8585
})
8686

8787
it('another demo should close nomally', function(done) {
8888
this.timeout(0);
89-
var ppath = process.execPath + " " + path.join(global.tests_dir, 'snapshot', 'test-snapshot-app');
89+
var ppath = process.execPath + " " + path.join(global.tests_dir, 'snapshot', '1266-snapshot-crash-start');
9090
cp.exec(ppath, function(err, stdout, stderr) {
9191
});
9292
setTimeout(function(){
93-
fs.exists(path.join(global.tests_dir, 'snapshot','test-snapshot-app', 'tmp'), function(exists) {
93+
fs.exists(path.join(global.tests_dir, 'snapshot','1266-snapshot-crash-start', 'tmp'), function(exists) {
9494
if (exists)
9595
done();
9696
else

0 commit comments

Comments
 (0)