Skip to content

Commit 38556f3

Browse files
committed
Fix auxiliary server integration test
1 parent 24ea31f commit 38556f3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/integration/auxiliarycommandserver/connection_test.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,14 +142,18 @@ func (s *AuxiliaryTestSuite) TestAuxiliary_Test4_FileWatcher() {
142142
s.Require().NoError(err)
143143

144144
// Check command server has 2 ManagementPlaneResponses from updating a file on disk
145-
commandResponses := utils.ManagementPlaneResponses(s.T(), 1, utils.MockManagementPlaneAPIAddress)
145+
commandResponses := utils.ManagementPlaneResponses(s.T(), 2, utils.MockManagementPlaneAPIAddress)
146146
s.Equal(mpi.CommandResponse_COMMAND_STATUS_OK, commandResponses[0].GetCommandResponse().GetStatus())
147147
s.Equal("Successfully updated all files", commandResponses[0].GetCommandResponse().GetMessage())
148+
s.Equal(mpi.CommandResponse_COMMAND_STATUS_OK, commandResponses[1].GetCommandResponse().GetStatus())
149+
s.Equal("Successfully updated all files", commandResponses[1].GetCommandResponse().GetMessage())
148150

149151
// Check auxiliary server has 2 ManagementPlaneResponses from updating a file on disk
150-
auxResponses := utils.ManagementPlaneResponses(s.T(), 1, utils.AuxiliaryMockManagementPlaneAPIAddress)
152+
auxResponses := utils.ManagementPlaneResponses(s.T(), 2, utils.AuxiliaryMockManagementPlaneAPIAddress)
151153
s.Equal(mpi.CommandResponse_COMMAND_STATUS_OK, auxResponses[0].GetCommandResponse().GetStatus())
152154
s.Equal("Successfully updated all files", auxResponses[0].GetCommandResponse().GetMessage())
155+
s.Equal(mpi.CommandResponse_COMMAND_STATUS_OK, auxResponses[1].GetCommandResponse().GetStatus())
156+
s.Equal("Successfully updated all files", auxResponses[1].GetCommandResponse().GetMessage())
153157
slog.Info("finished auxiliary command server file watcher test")
154158
}
155159

0 commit comments

Comments
 (0)