Skip to content

Commit

Permalink
fix test & lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hansol-medi committed Dec 28, 2022
1 parent 26ecdde commit d3a9e98
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion server/middleware/auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,22 @@ func (c *mockQueryClient) GetOracleUpgrade(_ context.Context, _, _ string) (*ora
return nil, nil
}

// TODO: implement mock GetDeal for test
func (c *mockQueryClient) GetDeal(_ context.Context, _ uint64) (*datadealtypes.Deal, error) {
return nil, nil
}

func (c *mockQueryClient) GetOracleUpgradeInfo(_ context.Context) (*oracletypes.OracleUpgradeInfo, error) {
return nil, nil
}

func (c *mockQueryClient) GetOracle(_ context.Context, _ string) (*oracletypes.Oracle, error) {
return nil, nil
}

func (c *mockQueryClient) VerifyTrustedBlockInfo(_ int64, _ []byte) error {
return nil
}

type mockAccount struct{}

func (a *mockAccount) Reset() {
Expand Down

0 comments on commit d3a9e98

Please sign in to comment.