blob: 15226a997d76dbf7070f851d8776cbc568a86dd5 [file] [log] [blame]
// Copyright 2023 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package upload
import (
"log"
"testing"
"golang.org/x/telemetry/internal/counter"
)
// this sends an empty valid report to the server
func TestRun(t *testing.T) {
// don't run this test on the builders
t.Skip("for manual testing only")
log.SetFlags(log.Lshortfile)
finished := counter.Open()
c := counter.New("testing")
c.Inc()
now = future(15)
finished() // for Windows
Run(nil)
log.Printf("finished")
}