@@ -41,27 +41,27 @@ func TestClusterTestSuite(t *testing.T) {
4141}
4242
4343func (suite * ClusterInfoTestSuite ) SetupTest () {
44- if ! fixture .IsProcessRunning (fixture .PrincipalName ) {
44+ if ! fixture .IsProcessRunning (fixture .PrincipalName , suite . T () ) {
4545 // Start the principal if it is not running and wait for it to be ready
46- suite .Require ().NoError (fixture .StartProcess (fixture .PrincipalName ))
46+ suite .Require ().NoError (fixture .StartProcess (fixture .PrincipalName , suite . T () ))
4747 fixture .CheckReadiness (suite .T (), fixture .PrincipalName )
4848 } else {
4949 // If principal is already running, verify that it is ready
5050 fixture .CheckReadiness (suite .T (), fixture .PrincipalName )
5151 }
5252
53- if ! fixture .IsProcessRunning (fixture .AgentManagedName ) {
53+ if ! fixture .IsProcessRunning (fixture .AgentManagedName , suite . T () ) {
5454 // Start the agent if it is not running and wait for it to be ready
55- suite .Require ().NoError (fixture .StartProcess (fixture .AgentManagedName ))
55+ suite .Require ().NoError (fixture .StartProcess (fixture .AgentManagedName , suite . T () ))
5656 fixture .CheckReadiness (suite .T (), fixture .AgentManagedName )
5757 } else {
5858 // If agent is already running, verify that it is ready
5959 fixture .CheckReadiness (suite .T (), fixture .AgentManagedName )
6060 }
6161
62- if ! fixture .IsProcessRunning (fixture .AgentAutonomousName ) {
62+ if ! fixture .IsProcessRunning (fixture .AgentAutonomousName , suite . T () ) {
6363 // Start the agent if it is not running and wait for it to be ready
64- suite .Require ().NoError (fixture .StartProcess (fixture .AgentAutonomousName ))
64+ suite .Require ().NoError (fixture .StartProcess (fixture .AgentAutonomousName , suite . T () ))
6565 fixture .CheckReadiness (suite .T (), fixture .AgentAutonomousName )
6666 } else {
6767 // If agent is already running, verify that it is ready
@@ -87,7 +87,7 @@ func (suite *ClusterInfoTestSuite) Test_ClusterInfo_Managed() {
8787 }, 60 * time .Second , 1 * time .Second )
8888
8989 // Stop the agent
90- err := fixture .StopProcess (fixture .AgentManagedName )
90+ err := fixture .StopProcess (fixture .AgentManagedName , suite . T () )
9191 requires .NoError (err )
9292
9393 // Verify that connection status is updated when agent is disconnected
@@ -100,7 +100,7 @@ func (suite *ClusterInfoTestSuite) Test_ClusterInfo_Managed() {
100100 }, 60 * time .Second , 1 * time .Second )
101101
102102 // Restart the agent
103- err = fixture .StartProcess (fixture .AgentManagedName )
103+ err = fixture .StartProcess (fixture .AgentManagedName , suite . T () )
104104 requires .NoError (err )
105105 fixture .CheckReadiness (suite .T (), fixture .AgentManagedName )
106106
@@ -127,7 +127,7 @@ func (suite *ClusterInfoTestSuite) Test_ClusterInfo_Autonomous() {
127127 }, 60 * time .Second , 1 * time .Second )
128128
129129 // Stop the agent
130- err := fixture .StopProcess (fixture .AgentAutonomousName )
130+ err := fixture .StopProcess (fixture .AgentAutonomousName , suite . T () )
131131 requires .NoError (err )
132132
133133 // Verify that connection status is updated when agent is disconnected
@@ -140,7 +140,7 @@ func (suite *ClusterInfoTestSuite) Test_ClusterInfo_Autonomous() {
140140 }, 60 * time .Second , 1 * time .Second )
141141
142142 // Restart the agent
143- err = fixture .StartProcess (fixture .AgentAutonomousName )
143+ err = fixture .StartProcess (fixture .AgentAutonomousName , suite . T () )
144144 requires .NoError (err )
145145 fixture .CheckReadiness (suite .T (), fixture .AgentAutonomousName )
146146
@@ -231,7 +231,7 @@ func (suite *ClusterInfoTestSuite) Test_ClusterCacheInfo() {
231231
232232 // Step 8:
233233 // Disconnect agent and verify that connection status is changed to Failed
234- requires .NoError (fixture .StopProcess (fixture .AgentManagedName ))
234+ requires .NoError (fixture .StopProcess (fixture .AgentManagedName , suite . T () ))
235235 requires .Eventually (func () bool {
236236 return fixture .HasConnectionStatus (fixture .AgentManagedName , appv1.ConnectionState {
237237 Status : appv1 .ConnectionStatusFailed ,
@@ -252,7 +252,7 @@ func (suite *ClusterInfoTestSuite) Test_ClusterCacheInfo() {
252252
253253 // Step 10:
254254 // Reconnect agent and verify that connection status and cluster cache info are updated again with correct values
255- requires .NoError (fixture .StartProcess (fixture .AgentManagedName ))
255+ requires .NoError (fixture .StartProcess (fixture .AgentManagedName , suite . T () ))
256256 fixture .CheckReadiness (suite .T (), fixture .AgentManagedName )
257257
258258 requires .Eventually (func () bool {
0 commit comments