diff options
Diffstat (limited to 'src/net/ip_test.go')
| -rw-r--r-- | src/net/ip_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/ip_test.go b/src/net/ip_test.go index 24f67cac97..b1939cd08f 100644 --- a/src/net/ip_test.go +++ b/src/net/ip_test.go @@ -53,7 +53,7 @@ func TestParseIP(t *testing.T) { } func BenchmarkParseIP(b *testing.B) { - testHookUninstaller.Do(func() { uninstallTestHooks() }) + testHookUninstaller.Do(uninstallTestHooks) for i := 0; i < b.N; i++ { for _, tt := range parseIPTests { @@ -110,7 +110,7 @@ func TestIPString(t *testing.T) { } func BenchmarkIPString(b *testing.B) { - testHookUninstaller.Do(func() { uninstallTestHooks() }) + testHookUninstaller.Do(uninstallTestHooks) for i := 0; i < b.N; i++ { for _, tt := range ipStringTests { @@ -162,7 +162,7 @@ func TestIPMaskString(t *testing.T) { } func BenchmarkIPMaskString(b *testing.B) { - testHookUninstaller.Do(func() { uninstallTestHooks() }) + testHookUninstaller.Do(uninstallTestHooks) for i := 0; i < b.N; i++ { for _, tt := range ipMaskStringTests { |
