Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jinoosss committed Nov 26, 2024
1 parent 71816b1 commit ba73018
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions serve/methods/gas_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,16 @@ func TestGetGasPricesByTxResults_Transactions(t *testing.T) {

for _, responseItem := range response {
for _, testCaseResult := range testCase.results {
if responseItem.Denom == testCaseResult.Denom {
assert.Equal(t, responseItem.Denom, testCaseResult.Denom)
assert.Equal(t, responseItem.High, testCaseResult.High)
assert.Equal(t, responseItem.Average, testCaseResult.Average)
assert.Equal(t, responseItem.Low, testCaseResult.Low)

count++
if responseItem.Denom != testCaseResult.Denom {
continue
}

assert.Equal(t, responseItem.Denom, testCaseResult.Denom)
assert.Equal(t, responseItem.High, testCaseResult.High)
assert.Equal(t, responseItem.Average, testCaseResult.Average)
assert.Equal(t, responseItem.Low, testCaseResult.Low)

count++
}
}

Expand Down

0 comments on commit ba73018

Please sign in to comment.