Skip to content

Commit

Permalink
#5 debugging failed test on appveyor.com (Windows)
Browse files Browse the repository at this point in the history
  • Loading branch information
fstab committed Mar 3, 2019
1 parent 45f8cd2 commit f31cd92
Showing 1 changed file with 20 additions and 12 deletions.
32 changes: 20 additions & 12 deletions tailer/fswatcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,30 @@ import (
"time"
)

//const tests = `
//- name: single logfile
// commands:
// - [mkdir, logdir]
// - [log, test line 1, logdir/logfile.log]
// - [log, test line 2, logdir/logfile.log]
// - [start file tailer, readall=true, logdir/logfile.log]
// - [expect, test line 1, logdir/logfile.log]
// - [expect, test line 2, logdir/logfile.log]
// - [log, test line 3, logdir/logfile.log]
// - [expect, test line 3, logdir/logfile.log]
// - [logrotate, logdir/logfile.log, logdir/logfile.log.1]
// - [log, test line 4, logdir/logfile.log]
// - [expect, test line 4, logdir/logfile.log]
// - [log, test line 5, logdir/logfile.log]
// - [expect, test line 5, logdir/logfile.log]
//`

// TEMPORARY TEST TO DEBUG A WINDOWS PROBLEM IN tearDown on AppVeyor.com
const tests = `
- name: single logfile
commands:
- [mkdir, logdir]
- [log, test line 1, logdir/logfile.log]
- [log, test line 2, logdir/logfile.log]
- [start file tailer, readall=true, logdir/logfile.log]
- [expect, test line 1, logdir/logfile.log]
- [expect, test line 2, logdir/logfile.log]
- [log, test line 3, logdir/logfile.log]
- [expect, test line 3, logdir/logfile.log]
- [logrotate, logdir/logfile.log, logdir/logfile.log.1]
- [log, test line 4, logdir/logfile.log]
- [expect, test line 4, logdir/logfile.log]
- [log, test line 5, logdir/logfile.log]
- [expect, test line 5, logdir/logfile.log]
- [start file tailer, fail_on_missing_logfile=false, logdir/logfile.log]
`

type testConfigType struct {
Expand Down

0 comments on commit f31cd92

Please sign in to comment.