File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -101,24 +101,24 @@ func TestSharedKey(t *testing.T) {
101
101
102
102
prv2 , err := GenerateKey (rand .Reader , DefaultCurve , nil )
103
103
if err != nil {
104
- fmt . Println (err .Error ())
104
+ t . Log (err .Error ())
105
105
t .FailNow ()
106
106
}
107
107
108
108
sk1 , err := prv1 .GenerateShared (& prv2 .PublicKey , skLen , skLen )
109
109
if err != nil {
110
- fmt . Println (err .Error ())
110
+ t . Log (err .Error ())
111
111
t .FailNow ()
112
112
}
113
113
114
114
sk2 , err := prv2 .GenerateShared (& prv1 .PublicKey , skLen , skLen )
115
115
if err != nil {
116
- fmt . Println (err .Error ())
116
+ t . Log (err .Error ())
117
117
t .FailNow ()
118
118
}
119
119
120
120
if ! bytes .Equal (sk1 , sk2 ) {
121
- fmt . Println (ErrBadSharedKeys .Error ())
121
+ t . Log (ErrBadSharedKeys .Error ())
122
122
t .FailNow ()
123
123
}
124
124
}
You can’t perform that action at this time.
0 commit comments