Skip to content

Commit

Permalink
test(trial): update debug log.
Browse files Browse the repository at this point in the history
Signed-off-by: Electronic-Waste <[email protected]>
  • Loading branch information
Electronic-Waste committed Aug 30, 2024
1 parent 7c426f7 commit eb301c9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/controller.v1beta1/trial/trial_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,6 @@ func TestReconcileBatchJob(t *testing.T) {
}, timeout).Should(gomega.BeTrue())

// Delete the Trial
time.Sleep(waitInterval)
g.Expect(c.Delete(ctx, trial)).NotTo(gomega.HaveOccurred())

// Expect that Trial is deleted
Expand All @@ -333,6 +332,7 @@ func TestReconcileBatchJob(t *testing.T) {
)
// Create the Trial with Push MC
trial := newFakeTrialBatchJob(commonv1beta1.PushCollector)
log.Info("create trial")
g.Expect(c.Create(ctx, trial)).NotTo(gomega.HaveOccurred())

// Expect that Trial status is succeeded with "false" status and "metrics unavailable" reason.
Expand All @@ -349,7 +349,7 @@ func TestReconcileBatchJob(t *testing.T) {
}, timeout).Should(gomega.BeTrue())

// Delete the Trial
time.Sleep(waitInterval)
log.Info("delete trial")
g.Expect(c.Delete(ctx, trial)).NotTo(gomega.HaveOccurred())

// Expect that Trial is deleted
Expand Down Expand Up @@ -388,7 +388,6 @@ func TestReconcileBatchJob(t *testing.T) {
}, timeout).Should(gomega.BeTrue())

// Delete the Trial
time.Sleep(waitInterval)
g.Expect(c.Delete(ctx, trial)).NotTo(gomega.HaveOccurred())

// Expect that Trial is deleted
Expand Down

0 comments on commit eb301c9

Please sign in to comment.