Skip to content

Commit

Permalink
Merge pull request #498 from bandprotocol/fix-signaller-test
Browse files Browse the repository at this point in the history
[Fix] fix signaller test
  • Loading branch information
colmazia authored Nov 28, 2024
2 parents 1898be1 + 26f95c3 commit 9086318
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion grogu/signaller/signaller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,14 @@ func (s *SignallerTestSuite) TestGetAllSignalIDs() {
// Update internal variables
s.TestUpdateInternalVariables()

expectedSignalIDs := []string{"signal1", "signal2"}

signalIDs = s.Signaller.getAllSignalIDs()
s.Require().NotEmpty(signalIDs)
s.Require().Equal("signal1", signalIDs[0])

// sort signalIDs to compare
sort.Strings(signalIDs)
s.Require().Equal(expectedSignalIDs, signalIDs)
}

func (s *SignallerTestSuite) TestGetNonPendingSignalIDs() {
Expand Down

0 comments on commit 9086318

Please sign in to comment.