Skip to content

Commit

Permalink
refactor(graphsync): cleanup integration test
Browse files Browse the repository at this point in the history
DRY up integration test so it's more clear what each test is doing
  • Loading branch information
hannahhoward committed Nov 19, 2019
1 parent a137983 commit ebbe656
Show file tree
Hide file tree
Showing 2 changed files with 227 additions and 299 deletions.
2 changes: 1 addition & 1 deletion impl/graphsync.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func (gs *GraphSync) RegisterRequestReceivedHook(overrideDefaultValidation bool,

// RegisterResponseReceivedHook adds a hook that runs when a response is received
func (gs *GraphSync) RegisterResponseReceivedHook(hook graphsync.OnResponseReceivedHook) error {
gs.requestManager.RegisterHook(hook)
gs.requestManager.RegisterHook(hook)
return nil
}

Expand Down
Loading

0 comments on commit ebbe656

Please sign in to comment.