Files
prysm/beacon-chain/db/kv/execution_chain_test.go
Preston Van Loon 62fec4d1f3 Replace context.Background with testing.TB.Context where possible (#15416)
* Replace context.Background with testing.TB.Context where possible

* Fix failing tests
2025-06-16 22:09:18 +00:00

35 lines
635 B
Go

package kv
import (
"testing"
v2 "github.com/OffchainLabs/prysm/v6/proto/prysm/v1alpha1"
)
func TestStore_SavePowchainData(t *testing.T) {
type args struct {
data *v2.ETH1ChainData
}
tests := []struct {
name string
args args
wantErr bool
}{
{
name: "nil data",
args: args{
data: nil,
},
wantErr: true,
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
store := setupDB(t)
if err := store.SaveExecutionChainData(t.Context(), tt.args.data); (err != nil) != tt.wantErr {
t.Errorf("SaveExecutionChainData() error = %v, wantErr %v", err, tt.wantErr)
}
})
}
}