]> Cypherpunks.ru repositories - gogost.git/blobdiff - gost3410/private_test.go
Do not hide error
[gogost.git] / gost3410 / private_test.go
index a9b051cfe6d9129cfb9fc33c916543e5e2e93726..924cad8442183e7378685e14b4da8c87bfb1eae1 100644 (file)
@@ -1,5 +1,5 @@
 // GoGOST -- Pure Go GOST cryptographic functions library
-// Copyright (C) 2015-2020 Sergey Matveev <stargrave@stargrave.org>
+// Copyright (C) 2015-2023 Sergey Matveev <stargrave@stargrave.org>
 //
 // This program is free software: you can redistribute it and/or modify
 // it under the terms of the GNU General Public License as published by
@@ -26,7 +26,7 @@ func TestSignerInterface(t *testing.T) {
        rand.Read(prvRaw)
        prv, err := NewPrivateKey(CurveIdGostR34102001TestParamSet(), prvRaw)
        if err != nil {
-               t.FailNow()
+               t.Fatal(err)
        }
        var _ crypto.Signer = prv
 }