Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ilija42 committed Jan 23, 2025
1 parent ab8c635 commit 98de5b2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/solana/codec/discriminator_extractor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package codec

import (
"encoding/base64"
"fmt"
mathrand "math/rand"
"testing"

Expand All @@ -27,13 +26,13 @@ func FuzzExtractorHappyPath(f *testing.F) {
extractor := NewDiscriminatorExtractor()
f.Fuzz(func(t *testing.T, testString string) {
if len(testString) < 12 {
t.Fatal(fmt.Sprintf("test string is shorter than 12 %s", testString))
t.Fatalf("test string is shorter than 12 %s", testString)
}

data := testString[:12]
std, err := base64.StdEncoding.DecodeString(data)
if err != nil {
t.Fatal(fmt.Sprintf("failed to decode test string %s with stdlib", data))
t.Fatalf("failed to decode test string %s with stdlib", data)
}

if len(std) < 8 {
Expand Down

0 comments on commit 98de5b2

Please sign in to comment.