Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(411)

Unified Diff: tokenserver/appengine/impl/machinetoken/rpc_inspect_machine_token_test.go

Issue 2943403003: token-server: Fix panic when generating machine token for unrecognized machine. (Closed)
Patch Set: flatten Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tokenserver/appengine/impl/machinetoken/rpc_inspect_machine_token_test.go
diff --git a/tokenserver/appengine/impl/machinetoken/rpc_inspect_machine_token_test.go b/tokenserver/appengine/impl/machinetoken/rpc_inspect_machine_token_test.go
index 2c821eb4254a61ca3ac946feb9b4bae2f4782748..1ca53606ec4ab7f1b68e8de4ea9e06f250de3f8f 100644
--- a/tokenserver/appengine/impl/machinetoken/rpc_inspect_machine_token_test.go
+++ b/tokenserver/appengine/impl/machinetoken/rpc_inspect_machine_token_test.go
@@ -22,7 +22,7 @@ import (
func TestInspectMachineTokenRPC(t *testing.T) {
Convey("with mocked context", t, func() {
- ctx := testingContext()
+ ctx := testingContext(testingCA)
impl := InspectMachineTokenRPC{
Signer: testingSigner(),
}

Powered by Google App Engine
This is Rietveld 408576698