diff --git a/cmd/camput/camput.go b/cmd/camput/camput.go index b121032f9..edbda0364 100644 --- a/cmd/camput/camput.go +++ b/cmd/camput/camput.go @@ -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{} } }