Skip to content

Commit f31cd92

Browse files
committed
#5 debugging failed test on appveyor.com (Windows)
1 parent 45f8cd2 commit f31cd92

File tree

1 file changed

+20
-12
lines changed

1 file changed

+20
-12
lines changed

tailer/fswatcher_test.go

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,22 +33,30 @@ import (
3333
"time"
3434
)
3535

36+
//const tests = `
37+
//- name: single logfile
38+
// commands:
39+
// - [mkdir, logdir]
40+
// - [log, test line 1, logdir/logfile.log]
41+
// - [log, test line 2, logdir/logfile.log]
42+
// - [start file tailer, readall=true, logdir/logfile.log]
43+
// - [expect, test line 1, logdir/logfile.log]
44+
// - [expect, test line 2, logdir/logfile.log]
45+
// - [log, test line 3, logdir/logfile.log]
46+
// - [expect, test line 3, logdir/logfile.log]
47+
// - [logrotate, logdir/logfile.log, logdir/logfile.log.1]
48+
// - [log, test line 4, logdir/logfile.log]
49+
// - [expect, test line 4, logdir/logfile.log]
50+
// - [log, test line 5, logdir/logfile.log]
51+
// - [expect, test line 5, logdir/logfile.log]
52+
//`
53+
54+
// TEMPORARY TEST TO DEBUG A WINDOWS PROBLEM IN tearDown on AppVeyor.com
3655
const tests = `
3756
- name: single logfile
3857
commands:
3958
- [mkdir, logdir]
40-
- [log, test line 1, logdir/logfile.log]
41-
- [log, test line 2, logdir/logfile.log]
42-
- [start file tailer, readall=true, logdir/logfile.log]
43-
- [expect, test line 1, logdir/logfile.log]
44-
- [expect, test line 2, logdir/logfile.log]
45-
- [log, test line 3, logdir/logfile.log]
46-
- [expect, test line 3, logdir/logfile.log]
47-
- [logrotate, logdir/logfile.log, logdir/logfile.log.1]
48-
- [log, test line 4, logdir/logfile.log]
49-
- [expect, test line 4, logdir/logfile.log]
50-
- [log, test line 5, logdir/logfile.log]
51-
- [expect, test line 5, logdir/logfile.log]
59+
- [start file tailer, fail_on_missing_logfile=false, logdir/logfile.log]
5260
`
5361

5462
type testConfigType struct {

0 commit comments

Comments
 (0)