Skip to content

Commit e44779d

Browse files
committed
fix: resolve test compilation issues
- Fix api/health/health_test.go atomic import - Fix vms/components/message/tx_test.go crypto import
1 parent 99d1ac0 commit e44779d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

api/health/health_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ func TestPassingChecks(t *testing.T) {
174174
func TestPassingThenFailingChecks(t *testing.T) {
175175
require := require.New(t)
176176

177-
var shouldCheckErr utils.Atomic[bool]
177+
var shouldCheckErr atomic.Atomic[bool]
178178
check := CheckerFunc(func(context.Context) (interface{}, error) {
179179
if shouldCheckErr.Get() {
180180
return errUnhealthy.Error(), errUnhealthy

vms/components/message/tx_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ import (
99
"github.com/stretchr/testify/require"
1010

1111
"github.com/luxfi/constants"
12-
"github.com/luxfi/utils"
12+
"github.com/luxfi/crypto"
1313
)
1414

1515
func TestTx(t *testing.T) {
1616
require := require.New(t)
1717

18-
tx := utils.RandomBytes(256 * constants.KiB)
18+
tx := crypto.RandomBytes(256 * constants.KiB)
1919
builtMsg := Tx{
2020
Tx: tx,
2121
}

0 commit comments

Comments
 (0)