Skip to content

Commit 7406174

Browse files
committed
Use underscore for function parameter name because the 'paralleltest' linter can't handle missing parameter names.
1 parent 03f5713 commit 7406174

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

bson/primitive/objectid_test.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@ import (
1818
"go.mongodb.org/mongo-driver/internal/require"
1919
)
2020

21-
func TestNew(*testing.T) {
22-
// Ensure that objectid.NewObjectID() doesn't panic.
23-
NewObjectID()
24-
}
25-
2621
func TestString(t *testing.T) {
2722
id := NewObjectID()
2823
require.Contains(t, id.String(), id.Hex())

internal/assert/assertions_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ func (t *bufferT) Errorf(format string, args ...interface{}) {
179179
t.buf.WriteString(decorate(fmt.Sprintf(format, args...)))
180180
}
181181

182-
func TestStringEqual(*testing.T) {
182+
func TestStringEqual(_ *testing.T) {
183183
for _, currCase := range []struct {
184184
equalWant string
185185
equalGot string
@@ -193,7 +193,7 @@ func TestStringEqual(*testing.T) {
193193
}
194194
}
195195

196-
func TestEqualFormatting(*testing.T) {
196+
func TestEqualFormatting(_ *testing.T) {
197197
for _, currCase := range []struct {
198198
equalWant string
199199
equalGot string
@@ -1074,7 +1074,7 @@ Diff:
10741074
Equal(t, expected, actual)
10751075
}
10761076

1077-
func TestTimeEqualityErrorFormatting(*testing.T) {
1077+
func TestTimeEqualityErrorFormatting(_ *testing.T) {
10781078
mockT := new(mockTestingT)
10791079

10801080
Equal(mockT, time.Second*2, time.Millisecond)

x/mongo/driver/topology/topology_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ func TestMinPoolSize(t *testing.T) {
583583
}
584584
}
585585

586-
func TestTopology_String_Race(*testing.T) {
586+
func TestTopology_String_Race(_ *testing.T) {
587587
ch := make(chan bool)
588588
topo := &Topology{
589589
servers: make(map[address.Address]*Server),

0 commit comments

Comments
 (0)