From 6cb1031bcbea0c13fb49f9ae445641aed53d2e8e Mon Sep 17 00:00:00 2001 From: Rose Hogenson Date: Thu, 25 Sep 2025 22:35:12 -0700 Subject: Fix test --- internal/cryptoutil/cryptoutil_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'internal') diff --git a/internal/cryptoutil/cryptoutil_test.go b/internal/cryptoutil/cryptoutil_test.go index 6235878..79a53a9 100644 --- a/internal/cryptoutil/cryptoutil_test.go +++ b/internal/cryptoutil/cryptoutil_test.go @@ -21,9 +21,9 @@ func TestPassword(t *testing.T) { if err != nil { t.Fatalf("Hash(%q) failed: %s", password, err) } - _, err = CheckPassword(password, hash) + _, err = hash.CheckPassword(password) if err != nil { - t.Errorf("CheckPassword(%q, %q) failed: %s", password, hash, err) + t.Errorf("%x.CheckPassword(%q) failed: %s", hash, password, err) } } @@ -62,9 +62,9 @@ func TestDeriveKey(t *testing.T) { if err != nil { t.Fatalf("Hash(%q) failed: %s", password, err) } - rawKey, err := CheckPassword(password, hash) + rawKey, err := hash.CheckPassword(password) if err != nil { - t.Fatalf("CheckPassword(%q, %x) failed: %s", password, hash, err) + t.Fatalf("%x.CheckPassword(%q) failed: %s", hash, password, err) } key, err := rawKey.EncryptionKey() if err != nil { -- cgit v1.3.1