Renaming a test

This commit is contained in:
Diptanu Choudhury 2016-01-20 15:55:41 -08:00
parent 87eef5cd3f
commit 6b9dcd06c6
1 changed files with 3 additions and 3 deletions

View File

@ -15,10 +15,10 @@ var (
path = "/tmp/logrotator"
)
func TestLogRotator_IncorrectPath(t *testing.T) {
incorrectPath := "/foo"
func TestLogRotator_InvalidPath(t *testing.T) {
invalidPath := "/foo"
if _, err := NewLogRotator(incorrectPath, "redis.stdout", 10, 10, logger); err == nil {
if _, err := NewLogRotator(invalidPath, "redis.stdout", 10, 10, logger); err == nil {
t.Fatal("expected err")
}
}