Skip to content

Commit c8a49ee

Browse files
schmichaelMahmood Ali
authored andcommitted
test: fix gofmt -s violations
1 parent b54cea5 commit c8a49ee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

command/agent/http_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,7 @@ func TestHTTPServer_Limits_OK(t *testing.T) {
971971
for _, conn := range conns {
972972
conn.Close()
973973
}
974-
for _ = range conns {
974+
for range conns {
975975
err := <-errCh
976976
require.Contains(t, err.Error(), "use of closed network connection")
977977
}

nomad/rpc_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@ func TestRPC_Limits_OK(t *testing.T) {
792792
for _, conn := range conns {
793793
conn.Close()
794794
}
795-
for _ = range conns {
795+
for range conns {
796796
err := <-errCh
797797
require.Contains(t, err.Error(), "use of closed network connection")
798798
}

0 commit comments

Comments
 (0)