Skip to content

Commit

Permalink
small test fixes + bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
ericxtang committed Jun 20, 2018
1 parent 7a21d20 commit 64d447e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions common/db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ func TestDBClaims(t *testing.T) {
return
}
if nbreceipts != 2 {
t.Error("Mismatched receipts for claim: expected 2 got %d", nbreceipts)
t.Errorf("Mismatched receipts for claim: expected 2 got %d", nbreceipts)
return
}
// check job 0 claim 1
Expand All @@ -315,7 +315,7 @@ func TestDBClaims(t *testing.T) {
return
}
if nbreceipts != 2 {
t.Error("Mismatched receipts for claim: expected 2 got %d", nbreceipts)
t.Errorf("Mismatched receipts for claim: expected 2 got %d", nbreceipts)
return
}
// check job 1 claim 0
Expand All @@ -326,7 +326,7 @@ func TestDBClaims(t *testing.T) {
return
}
if nbreceipts != 2 {
t.Error("Mismatched receipts for claim: expected 2 got %d", nbreceipts)
t.Errorf("Mismatched receipts for claim: expected 2 got %d", nbreceipts)
return
}
// Sanity check number of claims
Expand Down
2 changes: 1 addition & 1 deletion core/livepeernode.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ var EthMinedTxTimeout = 60 * time.Second
var DefaultMasterPlaylistWaitTime = 60 * time.Second
var DefaultJobLength = int64(5760) //Avg 1 day in 15 sec blocks
var ConnFileWriteFreq = time.Duration(60) * time.Second
var LivepeerVersion = "0.2.3-unstable"
var LivepeerVersion = "0.2.4-unstable"
var SubscribeRetry = uint64(3)

//NodeID can be converted from libp2p PeerID.
Expand Down
4 changes: 2 additions & 2 deletions core/livepeernode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func TestNodeClaimManager(t *testing.T) {
n.ClaimManagers[15] = &StubClaimManager{}
cm, err := n.GetClaimManager(job)
if err != nil || cm == nil {
t.Error("Did not retrieve claimmanager ", cm, err)
t.Errorf("Did not retrieve claimmanager %v %v", cm, err)
return
}

Expand All @@ -126,7 +126,7 @@ func TestNodeClaimManager(t *testing.T) {
// test with a nil eth client
cm, err = n.GetClaimManager(job)
if err != nil || cm != nil {
t.Error("Claimmanager unexpected result %v %v", cm, err)
t.Errorf("Claimmanager unexpected result %v %v", cm, err)
return
}

Expand Down

0 comments on commit 64d447e

Please sign in to comment.