properly test timing vuln fix

This commit is contained in:
AJ ONeal 2020-08-13 03:53:09 -06:00
parent 89d3a2552a
commit 6ef812cfcb
1 changed files with 6 additions and 0 deletions

View File

@ -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 {