Skip to content

Commit

Permalink
fix: unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
joanestebanr committed Nov 11, 2024
1 parent b49fc8e commit aaf9254
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions aggsender/aggsender_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -859,13 +859,8 @@ func TestCheckIfCertificatesAreSettled(t *testing.T) {
},
}

ctx, cancel := context.WithCancel(context.Background())
defer cancel()

go aggSender.checkIfCertificatesAreSettled(ctx)

time.Sleep(2 * time.Second)
cancel()
ctx := context.TODO()
aggSender.checkPendingCertificatesStatus(ctx)

mockAggLayerClient.AssertExpectations(t)
mockStorage.AssertExpectations(t)
Expand Down

0 comments on commit aaf9254

Please # to comment.