Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
Fix fine-tuning test email notifications (#428)
Browse files Browse the repository at this point in the history
Deleting the file immediately after cancelling the job results in a failed job and a notification email.

Adding a short wait fixes this.
  • Loading branch information
TheoKanning authored Dec 2, 2023
1 parent 1f43e06 commit 41c14c6
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,13 @@ void retrieveFineTuningJob() {
}

@Test
@Order(2)
void cancelFineTuningJob() {
@Order(3)
void cancelFineTuningJob() throws Exception {
FineTuningJob fineTuningJob = service.cancelFineTuningJob(fineTuningJobId);

assertEquals("cancelled", fineTuningJob.getStatus());

// wait before cleaning up to prevent job failure emails
TimeUnit.SECONDS.sleep(3);
}
}

0 comments on commit 41c14c6

Please sign in to comment.