atc: remove update last scheduled test on job
This test is not needed because the method is already tested in the job
factory tests.
@@ -1945,21 +1945,4 @@ var _ = Describe("Job", func() {
Expect(job.HasNewInputs()).To(BeFalse())
})
})
-
- Describe("UpdateLastScheduled", func() {
- var requestedTime time.Time
- BeforeEach(func() {
- requestedTime = time.Now()
-
- err := job.UpdateLastScheduled(requestedTime)
- Expect(err).ToNot(HaveOccurred())
- })
-
- It("update last scheduled to be the given requested time", func() {
- var lastScheduled time.Time
- err := dbConn.QueryRow("SELECT last_scheduled FROM jobs WHERE id = $1", job.ID()).Scan(&lastScheduled)
- Expect(err).ToNot(HaveOccurred())
- Expect(lastScheduled).Should(BeTemporally("==", requestedTime))
- })
- })
})
