]> Cypherpunks.ru repositories - gogost.git/blobdiff - src/cypherpunks.ru/gogost/internal/gost34112012/hmac_test.go
FailNow() must be used instead of just marking Fail()
[gogost.git] / src / cypherpunks.ru / gogost / internal / gost34112012 / hmac_test.go
index ea806d51275d52940354ae8a0d8b053dd623d6bc..859d484f441f1544b34384275f357860b5b8cbc2 100644 (file)
@@ -50,7 +50,7 @@ func TestHMACVectors(t *testing.T) {
                0x01, 0x31, 0x37, 0x01, 0x0a, 0x83, 0x75, 0x4f,
                0xd0, 0xaf, 0x6d, 0x7c, 0xd4, 0x92, 0x2e, 0xd9,
        }) != 0 {
-               t.Fail()
+               t.FailNow()
        }
 
        h = hmac.New(hash512, []byte{
@@ -73,6 +73,6 @@ func TestHMACVectors(t *testing.T) {
                0x3a, 0xfe, 0x93, 0xb2, 0x81, 0x4f, 0x79, 0xf5,
                0x00, 0x0f, 0xfc, 0x03, 0x66, 0xc2, 0x51, 0xe6,
        }) != 0 {
-               t.Fail()
+               t.FailNow()
        }
 }