Rename unused testing parameter to _

The parameter is an additional marker that the test helper must only be
used for tests.
This commit is contained in:
Michael Eischer 2023-05-18 19:23:32 +02:00
parent 1514593f22
commit d1a5ec7839
6 changed files with 8 additions and 7 deletions

View file

@ -26,7 +26,8 @@ func TestUpdater(t *testing.T) {
test.Assert(t, ncalls > 0, "no progress was reported")
}
func TestUpdaterStopTwice(t *testing.T) {
func TestUpdaterStopTwice(_ *testing.T) {
// must not panic
c := progress.NewUpdater(0, func(runtime time.Duration, final bool) {})
c.Done()
c.Done()