diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4f4df59..13c6faa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: "test/go", ] - runs-on: ubuntu-latest + runs-on: self-hosted steps: - name: Checkout uses: actions/checkout@v4 diff --git a/hash/asm_test.go b/hash/asm_test.go index a7ad451..d9e8a08 100644 --- a/hash/asm_test.go +++ b/hash/asm_test.go @@ -1,8 +1,3 @@ -// GitHub actions run on machines not supporting AVX-512 instructions. -//go:build nogithub - -//nolint:lll - package hash import ( @@ -44,7 +39,7 @@ var ( ) func TestBlake3OneMessage(t *testing.T) { - for i := range len(zeroMatrix) { + for i := range zeroMatrix { matrix := zeroMatrix matrix[i] = on @@ -93,7 +88,7 @@ func TestBlake3Zeros(t *testing.T) { } func TestLastHashIsStored(t *testing.T) { - for i := range len(zeroMatrix) { + for i := range zeroMatrix { matrix := zeroMatrix matrix[i] = on diff --git a/space/compare/asm_test.go b/space/compare/asm_test.go index c65fee9..8ae2bec 100644 --- a/space/compare/asm_test.go +++ b/space/compare/asm_test.go @@ -1,6 +1,3 @@ -// GitHub actions run on machines not supporting AVX-512 instructions. -//go:build nogithub - package compare import ( diff --git a/space/space_test.go b/space/space_test.go index efc88e0..d2a1f2b 100644 --- a/space/space_test.go +++ b/space/space_test.go @@ -1,6 +1,3 @@ -// GitHub actions run on machines not supporting AVX-512 instructions. -//go:build nogithub - package space import ( @@ -2294,7 +2291,7 @@ func TestSpaceDeallocation(t *testing.T) { const numOfItems = 1000 appState := state.NewForTest(t, stateSize) - tx := pipeline.NewTransactionRequestFactory().New() + txFactory := pipeline.NewTransactionRequestFactory() s := NewSpaceTest[uint64, uint64](t, appState, nil, false) @@ -2306,8 +2303,11 @@ func TestSpaceDeallocation(t *testing.T) { Key: i, KeyHash: types.KeyHash(i + 1), }, StageData) + + tx := txFactory.New() requireT.NoError(s.SetKey(tx, v, i)) - for i := range v.storeRequest.PointersToStore { + requireT.NotNil(tx.StoreRequest) + for i := range tx.StoreRequest.PointersToStore { if v.storeRequest.Store[i].Pointer.PersistentAddress != 0 { continue }