From e3491e5515ac875f4d14863af90fc3f7840f6ecc Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Mon, 3 Mar 2014 12:53:40 -0800 Subject: [PATCH] camput: fix tests --- cmd/camput/camput.go | 5 +++++ 1 file changed, 5 insertions(+) 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{} } }