this is checking for the wrong string
@@ -62,7 +62,7 @@ func TestAppInsightsController(t *testing.T) {
// Wait for the AppInsights instance to be provisioned
assert.Eventually(func() bool {
_ = tc.k8sClient.Get(ctx, appInsightsNamespacedName, appInsightsInstance)
- return strings.Contains(appInsightsInstance.Status.Message, "Succeeded")
+ return strings.Contains(appInsightsInstance.Status.Message, successMsg)
}, tc.timeout, tc.retry, "awaiting appinsights instance creation")
// Delete the service
