camput: fix tests

This commit is contained in:
Brad Fitzpatrick 2014-03-03 12:53:40 -08:00
parent 08923e1c00
commit e3491e5515
1 changed files with 5 additions and 0 deletions

View File

@ -71,6 +71,11 @@ func init() {
}
}
}
// So multiple cmd/camput TestFoo funcs run, each with
// an fresh (and not previously closed) Uploader:
uploader = nil
uploaderOnce = sync.Once{}
}
}