Skip to content

Commit

Permalink
fix(tests): fix test issues
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahhoward committed Aug 5, 2021
1 parent 65390de commit 0a83688
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion impl/graphsync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ func TestGraphsyncRoundTripPartial(t *testing.T) {

for err := range errChan {
// verify the error is received for leaf beta node being missing
require.EqualError(t, err, fmt.Sprintf("Remote Peer Is Missing Block: %s", tree.LeafBetaLnk.String()))
require.EqualError(t, err, fmt.Sprintf("remote peer is missing block: %s", tree.LeafBetaLnk.String()))
}
require.Equal(t, tree.LeafAlphaBlock.RawData(), td.blockStore1[tree.LeafAlphaLnk])
require.Equal(t, tree.MiddleListBlock.RawData(), td.blockStore1[tree.MiddleListNodeLnk])
Expand Down
4 changes: 2 additions & 2 deletions requestmanager/asyncloader/asyncloader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ func TestRegisterUnregister(t *testing.T) {

requestID1 := graphsync.RequestID(rand.Int31())
err := asyncLoader.StartRequest(requestID1, "other")
require.EqualError(t, err, "Unknown persistence option")
require.EqualError(t, err, "unknown persistence option")

err = asyncLoader.RegisterPersistenceOption("other", otherSt.lsys)
require.NoError(t, err)
Expand All @@ -215,7 +215,7 @@ func TestRegisterUnregister(t *testing.T) {

requestID3 := graphsync.RequestID(rand.Int31())
err = asyncLoader.StartRequest(requestID3, "other")
require.EqualError(t, err, "Unknown persistence option")
require.EqualError(t, err, "unknown persistence option")
})
}
func TestRequestSplittingLoadLocallyFromBlockstore(t *testing.T) {
Expand Down

0 comments on commit 0a83688

Please sign in to comment.