From 6ef812cfcbd8e3ba404f5318e71d3f670722272a Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 13 Aug 2020 03:53:09 -0600 Subject: [PATCH] properly test timing vuln fix --- mgmt/authstore/authstore_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mgmt/authstore/authstore_test.go b/mgmt/authstore/authstore_test.go index b5b4dcb..65be897 100644 --- a/mgmt/authstore/authstore_test.go +++ b/mgmt/authstore/authstore_test.go @@ -52,6 +52,12 @@ func TestStore(t *testing.T) { return } + auth, err = store.Get(secret) + if nil != err { + t.Fatal("get by key error", err) + return + } + auth1.MachinePPID = "a-secretish-id" err = store.Set(auth1) if nil != err {