Skip to content

Commit 0f9e8ce

Browse files
committed
Fix lint
1 parent 762d70b commit 0f9e8ce

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

internal/api/handlers/v0/publish_integration_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ func TestPublishIntegration(t *testing.T) {
3939

4040
// Create test config with a valid Ed25519 seed
4141
testSeed := make([]byte, ed25519.SeedSize)
42-
rand.Read(testSeed)
42+
_, err := rand.Read(testSeed)
43+
require.NoError(t, err)
4344
testConfig := &config.Config{
4445
JWTPrivateKey: hex.EncodeToString(testSeed),
4546
}

internal/api/handlers/v0/publish_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import (
2020
"github.com/modelcontextprotocol/registry/internal/model"
2121
"github.com/stretchr/testify/assert"
2222
"github.com/stretchr/testify/mock"
23+
"github.com/stretchr/testify/require"
2324
)
2425

2526
// MockRegistryService is a mock implementation of the RegistryService interface
@@ -58,7 +59,8 @@ func generateTestJWTToken(cfg *config.Config, claims auth.JWTClaims) (string, er
5859

5960
func TestPublishEndpoint(t *testing.T) {
6061
testSeed := make([]byte, ed25519.SeedSize)
61-
rand.Read(testSeed)
62+
_, err := rand.Read(testSeed)
63+
require.NoError(t, err)
6264
testConfig := &config.Config{
6365
JWTPrivateKey: hex.EncodeToString(testSeed),
6466
}

0 commit comments

Comments
 (0)