From 26f95c3f1e36644aab8d1d2b17c331ce4812804b Mon Sep 17 00:00:00 2001 From: colmazia Date: Thu, 28 Nov 2024 17:17:45 +0700 Subject: [PATCH] fix signaller test --- grogu/signaller/signaller_test.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/grogu/signaller/signaller_test.go b/grogu/signaller/signaller_test.go index 8615ba0a6..c9bf46efd 100644 --- a/grogu/signaller/signaller_test.go +++ b/grogu/signaller/signaller_test.go @@ -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() {