aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard/app/api_test.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2024-04-16 16:35:18 +0200
committerDmitry Vyukov <dvyukov@google.com>2024-04-17 13:48:18 +0000
commitacc528cbf40c42eb112d2ce66c5f778bd4a397fb (patch)
tree1db39cbb9517df790fdf189d3bd1f59e4b7a8b0c /dashboard/app/api_test.go
parent18f6e127bf6e515fc3eee0936bde2415e676e160 (diff)
tools/syz-linter: check t.Logf/Errorf/Fatalf messages
Fix checking of Logf, it has string in 0-th arg. Add checking of t.Errorf/Fatalf.
Diffstat (limited to 'dashboard/app/api_test.go')
-rw-r--r--dashboard/app/api_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/dashboard/app/api_test.go b/dashboard/app/api_test.go
index 4a872231e..6897848cf 100644
--- a/dashboard/app/api_test.go
+++ b/dashboard/app/api_test.go
@@ -17,7 +17,7 @@ func TestClientSecretOK(t *testing.T) {
},
}, "user", "secr1t", "")
if err != nil || got != "" {
- t.Errorf("Unexpected error %v %v", got, err)
+ t.Errorf("unexpected error %v %v", got, err)
}
}
@@ -28,7 +28,7 @@ func TestClientOauthOK(t *testing.T) {
},
}, "user", "", "OauthSubject:public")
if err != nil || got != "" {
- t.Errorf("Unexpected error %v %v", got, err)
+ t.Errorf("unexpected error %v %v", got, err)
}
}
@@ -39,7 +39,7 @@ func TestClientSecretFail(t *testing.T) {
},
}, "user", "wrong", "")
if err != ErrAccess || got != "" {
- t.Errorf("Unexpected error %v %v", got, err)
+ t.Errorf("unexpected error %v %v", got, err)
}
}
@@ -48,7 +48,7 @@ func TestClientSecretMissing(t *testing.T) {
Clients: map[string]string{},
}, "user", "ignored", "")
if err != ErrAccess || got != "" {
- t.Errorf("Unexpected error %v %v", got, err)
+ t.Errorf("unexpected error %v %v", got, err)
}
}
@@ -63,7 +63,7 @@ func TestClientNamespaceOK(t *testing.T) {
},
}, "user", "secr1t", "")
if err != nil || got != "ns1" {
- t.Errorf("Unexpected error %v %v", got, err)
+ t.Errorf("unexpected error %v %v", got, err)
}
}