Skip to content

Commit

Permalink
Add unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
dshulyak authored and antonlerner committed Aug 31, 2021
1 parent 4f7e7fe commit fcfccc8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions activation/activation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,16 @@ func publishAtx(b *Builder, meshLayer types.LayerID, clockEpoch types.EpochID, b

// ========== Tests ==========

func TestBuilder_StartSmeshingCoinbase(t *testing.T) {
activationDb := newActivationDb(t)
builder := newBuilder(t, activationDb)

coinbase := types.Address{1, 1, 1}
require.NoError(t, builder.StartSmeshing(context.Background(), coinbase, PostSetupOpts{}))
t.Cleanup(func() { builder.StopSmeshing(true) })
require.Equal(t, coinbase, builder.Coinbase())
}

func TestBuilder_PublishActivationTx_HappyFlow(t *testing.T) {
types.SetLayersPerEpoch(layersPerEpoch)
r := require.New(t)
Expand Down

0 comments on commit fcfccc8

Please sign in to comment.