Skip to content

Commit

Permalink
[sky] refs #279 - Add TestUninjectedTxnTimestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
olemis committed Jan 8, 2020
1 parent eff3103 commit e6bac78
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/coin/skycoin/models/coin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,3 +241,8 @@ func TestPendingTxnFee(t *testing.T) {
fee, err = pendTxn.ComputeFee("NOCOINATALL")
testutil.RequireError(t, err, "Invalid ticker")
}

func TestUninjectedTxnTimestamp(t *testing.T) {
coreTxn := new(SkycoinUninjectedTransaction)
require.Equal(t, core.Timestamp(0), coreTxn.GetTimestamp())
}

0 comments on commit e6bac78

Please sign in to comment.