mirror of
https://github.com/coder/coder.git
synced 2025-07-08 11:39:50 +00:00
chore: update to go 1.20 (#5968)
Co-authored-by: Colin Adler <colin1adler@gmail.com>
This commit is contained in:
@ -24,7 +24,7 @@ import (
|
||||
func randRemoteAddr() string {
|
||||
var b [4]byte
|
||||
// nolint:gosec
|
||||
rand.Read(b[:])
|
||||
_, _ = rand.Read(b[:])
|
||||
// nolint:gosec
|
||||
return fmt.Sprintf("%s:%v", net.IP(b[:]).String(), rand.Int31()%(1<<16))
|
||||
}
|
||||
|
@ -360,6 +360,7 @@ func TestIsOrgRole(t *testing.T) {
|
||||
|
||||
// nolint:paralleltest
|
||||
for _, c := range testCases {
|
||||
c := c
|
||||
t.Run(c.RoleName, func(t *testing.T) {
|
||||
t.Parallel()
|
||||
orgID, ok := rbac.IsOrgRole(c.RoleName)
|
||||
|
@ -46,9 +46,9 @@ func ConvertRegoAst(cfg ConvertConfig, partial *rego.PartialQueries) (sqltypes.B
|
||||
}
|
||||
|
||||
if i != 0 {
|
||||
builder.WriteString("\n")
|
||||
_, _ = builder.WriteString("\n")
|
||||
}
|
||||
builder.WriteString(q.String())
|
||||
_, _ = builder.WriteString(q.String())
|
||||
queries = append(queries, converted)
|
||||
}
|
||||
|
||||
|
@ -44,7 +44,7 @@ func TestChecker_Notify(t *testing.T) {
|
||||
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
w.WriteHeader(http.StatusOK)
|
||||
w.Write(b)
|
||||
_, _ = w.Write(b)
|
||||
}
|
||||
}))
|
||||
defer srv.Close()
|
||||
|
Reference in New Issue
Block a user