Skip to content

Commit

Permalink
Bump test coverage to 90% (#395)
Browse files Browse the repository at this point in the history
Adds more tests to 90% test coverage
  • Loading branch information
joshcarp authored Nov 18, 2022
1 parent 40a2428 commit c6b5562
Show file tree
Hide file tree
Showing 4 changed files with 446 additions and 2 deletions.
2 changes: 2 additions & 0 deletions client_ext_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ func (a *assertPeerInterceptor) WrapStreamingClient(next connect.StreamingClient
conn := next(ctx, spec)
assert.NotZero(a.tb, conn.Peer().Addr)
assert.NotZero(a.tb, conn.Peer().Protocol)
assert.NotZero(a.tb, conn.Spec())
return conn
}
}
Expand All @@ -158,6 +159,7 @@ func (a *assertPeerInterceptor) WrapStreamingHandler(next connect.StreamingHandl
return func(ctx context.Context, conn connect.StreamingHandlerConn) error {
assert.NotZero(a.tb, conn.Peer().Addr)
assert.NotZero(a.tb, conn.Peer().Protocol)
assert.NotZero(a.tb, conn.Spec())
return next(ctx, conn)
}
}
Loading

0 comments on commit c6b5562

Please sign in to comment.