Fix codespell and test comment

This commit is contained in:
Theodor S. Midtlien
2026-09-16 16:00:25 +02:00
committed by GitHub
parent 4c2e4e055c
commit 4605d0feba
2 changed files with 8 additions and 10 deletions
@@ -729,12 +729,12 @@ func TestSetProfileField_KeepsKeysItWasNotAskedToWrite(t *testing.T) {
// Keys Config has no field for, in every shape a newer client could
// leave one behind.
unknown := map[string]any{
"AString": "keep me",
"ANumber": float64(7),
"ABool": true,
"ANull": nil,
"AList": []any{"a", float64(2), false},
"AnObject": map[string]any{"Nested": map[string]any{"Deep": []any{float64(1)}}},
"String": "keep me",
"Number": float64(7),
"Bool": true,
"Null": nil,
"List": []any{"a", float64(2), false},
"Object": map[string]any{"Nested": map[string]any{"Deep": []any{float64(1)}}},
}
fields := map[string]any{"MTU": 1280}
for k, v := range unknown {
+2 -4
View File
@@ -103,10 +103,8 @@ func setupServerWithProfile(t *testing.T) (s *Server, ctx context.Context, profN
return s, ctx, profName, currUser.Username, cfgPath
}
// testProfileOwner is the identity the unprivileged test contexts carry, so a
// fixture profile can be owned by the very caller that drives the handler.
// Without an owner the profile is unowned, which the loader hides from every
// unprivileged caller.
// testProfileOwner is the identity userCtx carries, which is who a fixture
// profile belongs to.
func testProfileOwner() *ipcauth.Identity {
id := unprivilegedIdentity()
return &id