Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jianoaix committed Jan 23, 2024
1 parent 2e57886 commit e7c1c9a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions disperser/dataapi/subgraph_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ var (
}

nonSigners = map[string]int{
"0x000763fb86a79eda47c891d8826474d80b6a935ad2a2b5de921933e05c67f320f211": 1,
"0x000763fb86a79eda47c891d8826474d80b6a935ad2a2b5de921933e05c67f320f212": 1,
"0x000763fb86a79eda47c891d8826474d80b6a935ad2a2b5de921933e05c67f320f222": 1,
"0xe1cdae12a0074f20b8fc96a0489376db34075e545ef60c4845d264a732568311": 1,
"0xe1cdae12a0074f20b8fc96a0489376db34075e545ef60c4845d264a732568310": 1,
"0xe22dae12a0074f20b8fc96a0489376db34075e545ef60c4845d264a732568311": 1,
}

subgraphBatches = []*subgraph.Batches{
Expand Down Expand Up @@ -201,7 +201,8 @@ func TestQueryNumBatchesByOperatorsInThePastBlockTimestamp(t *testing.T) {
numBatchesByOperators, err := subgraphClient.QueryNumBatchesByOperatorsInThePastBlockTimestamp(context.Background(), uint64(1), nonSigners)
assert.NoError(t, err)

assert.Equal(t, 2, len(numBatchesByOperators))
// We compute the num batches for each nonsigning operator.
assert.Equal(t, 3, len(numBatchesByOperators))

numBatches := numBatchesByOperators["0xe1cdae12a0074f20b8fc96a0489376db34075e545ef60c4845d264a732568310"]
assert.Equal(t, 3, numBatches)
Expand Down

0 comments on commit e7c1c9a

Please sign in to comment.