mirror of
https://github.com/fluxcd/flagger.git
synced 2026-04-15 06:57:34 +00:00
This makes the primary ready in the TestScheduler_DeploymentAlerts test
in order to send out an alert. Previously, it did not reach a state to send an alert.
This commit is contained in:
@@ -613,6 +613,12 @@ func TestScheduler_DeploymentAlerts(t *testing.T) {
|
||||
_, err := mocks.kubeClient.CoreV1().Secrets("default").Update(context.TODO(), secret, metav1.UpdateOptions{})
|
||||
require.NoError(t, err)
|
||||
|
||||
// init canary and send alerts
|
||||
// init canary
|
||||
mocks.ctrl.advanceCanary("podinfo", "default")
|
||||
|
||||
// make primary ready
|
||||
mocks.makePrimaryReady(t)
|
||||
|
||||
// initialization done - now send alert
|
||||
mocks.ctrl.advanceCanary("podinfo", "default")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user