diff --git a/api/v1/setup_teardown_routes_test.go b/api/v1/setup_teardown_routes_test.go index 2a55b6abe46..c2d2a6963db 100644 --- a/api/v1/setup_teardown_routes_test.go +++ b/api/v1/setup_teardown_routes_test.go @@ -58,7 +58,6 @@ func TestSetupData(t *testing.T) { {"GET", "", `{}`}, }, }, { - name: "noSetup", script: []byte(` export default function(data) { diff --git a/converter/har/utils_test.go b/converter/har/utils_test.go index 873c4a4c87a..e97ac10edb9 100644 --- a/converter/har/utils_test.go +++ b/converter/har/utils_test.go @@ -10,7 +10,7 @@ import ( ) func TestIsAllowedURL(t *testing.T) { - var allowed = []struct { + allowed := []struct { url string only []string skip []string diff --git a/js/tc39/tc39_norace_test.go b/js/tc39/tc39_norace_test.go index 923a57b94a9..43c5c0ebfcb 100644 --- a/js/tc39/tc39_norace_test.go +++ b/js/tc39/tc39_norace_test.go @@ -1,4 +1,6 @@ +//go:build !race // +build !race + // Heavily influenced by the fantastic work by @dop251 for https://github.com/dop251/goja package tc39 diff --git a/js/tc39/tc39_race_test.go b/js/tc39/tc39_race_test.go index e2c54c90d6a..500b1c17bb5 100644 --- a/js/tc39/tc39_race_test.go +++ b/js/tc39/tc39_race_test.go @@ -1,4 +1,6 @@ +//go:build race // +build race + // Heavily influenced by the fantastic work by @dop251 for https://github.com/dop251/goja package tc39