mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 23:16:45 +00:00
Minor linter/test fixes after merging master
This commit is contained in:
@@ -828,6 +828,7 @@ func (s *RPCServer) WithdrawFiatFunds(ctx context.Context, r *gctrpc.WithdrawCur
|
||||
return &gctrpc.WithdrawResponse{}, common.ErrNotYetImplemented
|
||||
}
|
||||
|
||||
// GetLoggerDetails returns a loggers details
|
||||
func (s *RPCServer) GetLoggerDetails(ctx context.Context, r *gctrpc.GetLoggerDetailsRequest) (*gctrpc.GetLoggerDetailsResponse, error) {
|
||||
levels, err := log.Level(r.Logger)
|
||||
if err != nil {
|
||||
@@ -842,6 +843,7 @@ func (s *RPCServer) GetLoggerDetails(ctx context.Context, r *gctrpc.GetLoggerDet
|
||||
}, nil
|
||||
}
|
||||
|
||||
// SetLoggerDetails sets a loggers details
|
||||
func (s *RPCServer) SetLoggerDetails(ctx context.Context, r *gctrpc.SetLoggerDetailsRequest) (*gctrpc.GetLoggerDetailsResponse, error) {
|
||||
levels, err := log.SetLevel(r.Logger, r.Level)
|
||||
if err != nil {
|
||||
|
||||
@@ -214,7 +214,7 @@ func TestGetAccountBalance(t *testing.T) {
|
||||
func TestGetAggregatedBalance(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
if h.APIKey == "" || h.APISecret == "" || h.APIAuthPEMKey == "" {
|
||||
if !h.ValidateAPICredentials() {
|
||||
t.Skip()
|
||||
}
|
||||
|
||||
|
||||
@@ -258,7 +258,7 @@ func TestGetAccountBalance(t *testing.T) {
|
||||
|
||||
func TestGetAggregatedBalance(t *testing.T) {
|
||||
t.Parallel()
|
||||
if h.APIKey == "" || h.APISecret == "" || h.APIAuthPEMKey == "" {
|
||||
if !h.ValidateAPICredentials() {
|
||||
t.Skip()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user