Skip to content

Commit bd690b4

Browse files
committed
backupccl: deflake TestBackupAndRestoreJobDescription
This change sorts the jobs based on when they were created to ensure we get a stable sort of job descriptions. Fixes: cockroachdb#107684 Release note: None
1 parent 4413ec7 commit bd690b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/ccl/backupccl/backup_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,7 @@ func TestBackupAndRestoreJobDescription(t *testing.T) {
897897
resolvedAsOfCollectionURIs := getResolvedCollectionURIs(collections, asOf1)
898898

899899
sqlDB.CheckQueryResults(
900-
t, "SELECT description FROM [SHOW JOBS] WHERE job_type='RESTORE'",
900+
t, "SELECT description FROM [SHOW JOBS] WHERE job_type='RESTORE' ORDER BY created",
901901
[][]string{
902902
{fmt.Sprintf("RESTORE DATABASE data FROM ('%s', '%s', '%s')",
903903
backups[0].(string), backups[1].(string), backups[2].(string))},

0 commit comments

Comments
 (0)